How to set html content in Moodialog
- by Diego
Hello, i've just downloaded Moodialog, a Mootools plugin for dialog, but i have a problem.
If content is set via parameters it will be text and not html.
Can you help me change the function to accept html?
I suppose that this is the code to be edit.
setContent: function(){
var content = Array.from(arguments);
if (content.length == 1) content = content[0];
this.content.empty();
var type = typeOf(content);
if (['string', 'number'].contains(type)) this.content.set('text', content);
else this.content.adopt(content);
return this;
},
I tried to edit 'text' in 'html', but it will not work.
Thanks for help (and sorry for my bad english).