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/InsertSnippet/insert-snippet.js

    r681 r893  
    6060 
    6161InsertSnippet.prototype.onGenerate = function() { 
    62   var style_id = "IS-style"; 
    63   var style = this.editor._doc.getElementById(style_id); 
    64   if (style == null) { 
    65     style = this.editor._doc.createElement("link"); 
    66     style.id = style_id; 
    67     style.rel = 'stylesheet'; 
    68     style.href = _editor_url + 'plugins/InsertSnippet/InsertSnippet.css'; 
    69     this.editor._doc.getElementsByTagName("HEAD")[0].appendChild(style); 
    70   } 
     62  this.editor.addEditorStylesheet(_editor_url + 'plugins/InsertSnippet/InsertSnippet.css'); 
    7163}; 
    7264 
Note: See TracChangeset for help on using the changeset viewer.