How to set html content in Moodialog
        Posted  
        
            by 
                Diego
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Diego
        
        
        
        Published on 2010-12-21T11:31:59Z
        Indexed on 
            2010/12/25
            10:54 UTC
        
        
        Read the original article
        Hit count: 339
        
JavaScript
|mootools
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).
© Stack Overflow or respective owner