taoguan / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Patch to allow more then one css file to be included #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is a patch to allow for the include of more then one css file through
the options.

<pre>
// jquery.wusiwug.js
initFrame : function()
{
  var self = this;
  var style = '';

  if ( this.options.css && this.options.css.constructor == String ) {
    $.each(this.options.css.split(','), function(){
      style += '<link rel="stylesheet" type="text/css" media="screen"
href="' + this + '" />';
    });
  }
</pre>

Call function now with something along these lines
<pre>
$('textarea.wysiwyg').wysiwyg({css:
"/stylesheets/first.css,/stylesheets/second.css"})
</pre>

Original issue reported on code.google.com by goo...@mdeering.com on 21 Aug 2009 at 6:20

GoogleCodeExporter commented 8 years ago
A patch not a defact but I don't see where or how to contribute patches.

Original comment by goo...@mdeering.com on 21 Aug 2009 at 6:22

GoogleCodeExporter commented 8 years ago
Is it really needed? Why do not use @import directive in CSS?

Original comment by akzhan.a...@gmail.com on 8 Dec 2009 at 11:14