Changeset 893 for trunk/plugins/SetId


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/SetId/set-id.js

    r851 r893  
    3434 
    3535SetId.prototype.onGenerate = function() { 
    36   var style_id = "ID-style"; 
    37   var style = this.editor._doc.getElementById(style_id); 
    38   if (style == null) { 
    39     style = this.editor._doc.createElement("link"); 
    40     style.id = style_id; 
    41     style.rel = 'stylesheet'; 
    42     style.href = _editor_url + 'plugins/SetId/set-id.css'; 
    43     this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(style); 
    44   } 
     36  this.editor.addEditorStylesheet(_editor_url + 'plugins/SetId/set-id.css'); 
    4537}; 
    4638 
Note: See TracChangeset for help on using the changeset viewer.