Mercurial > public > sg101
comparison static/js/tiny_mce/themes/simple/editor_template_src.js @ 442:6c182ceb7147
Fixing #217; upgrade TinyMCE to 3.4.2 and enable the paste plugin.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 26 May 2011 00:43:49 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
441:33d0c55e57a9 | 442:6c182ceb7147 |
---|---|
17 tinymce.create('tinymce.themes.SimpleTheme', { | 17 tinymce.create('tinymce.themes.SimpleTheme', { |
18 init : function(ed, url) { | 18 init : function(ed, url) { |
19 var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings; | 19 var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings; |
20 | 20 |
21 t.editor = ed; | 21 t.editor = ed; |
22 ed.contentCSS.push(url + "/skins/" + s.skin + "/content.css"); | |
22 | 23 |
23 ed.onInit.add(function() { | 24 ed.onInit.add(function() { |
24 ed.onNodeChange.add(function(ed, cm) { | 25 ed.onNodeChange.add(function(ed, cm) { |
25 tinymce.each(states, function(c) { | 26 tinymce.each(states, function(c) { |
26 cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c)); | 27 cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c)); |
27 }); | 28 }); |
28 }); | 29 }); |
29 | |
30 ed.dom.loadCSS(url + "/skins/" + s.skin + "/content.css"); | |
31 }); | 30 }); |
32 | 31 |
33 DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css"); | 32 DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css"); |
34 }, | 33 }, |
35 | 34 |