Changeset 893 for trunk/plugins/Template


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/Template/template.js

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