Changeset 893 for trunk/plugins/Forms


Ignore:
Timestamp:
10/03/07 20:13:05 (12 years ago)
Author:
ray
Message:
  • #1079 Plugin DynamicCSS lists Xinha internal CSS
  • #1080 Some plugins leave behind stylesheet links in fullpage mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Forms/forms.js

    r854 r893  
    7676 
    7777Forms.prototype.onGenerate = function() { 
    78   var style_id = "Form-style" 
    79   var style = this.editor._doc.getElementById(style_id); 
    80   if (style == null) { 
    81     style = this.editor._doc.createElement("link"); 
    82     style.id = style_id; 
    83     style.rel = 'stylesheet'; 
    84     style.href = _editor_url + 'plugins/Forms/forms.css'; 
    85     this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(style); 
    86   } 
     78  this.editor.addEditorStylesheet(_editor_url + 'plugins/Forms/forms.css'); 
    8779}; 
    8880 
Note: See TracChangeset for help on using the changeset viewer.