equal
deleted
inserted
replaced
19 |
19 |
20 // Register buttons |
20 // Register buttons |
21 ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls}); |
21 ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls}); |
22 |
22 |
23 ed.onInit.add(function() { |
23 ed.onInit.add(function() { |
24 ed.dom.loadCSS(url + "/css/content.css"); |
24 if (ed.settings.content_css !== false) |
|
25 ed.dom.loadCSS(url + "/css/content.css"); |
25 |
26 |
26 if (ed.theme.onResolveName) { |
27 if (ed.theme.onResolveName) { |
27 ed.theme.onResolveName.add(function(th, o) { |
28 ed.theme.onResolveName.add(function(th, o) { |
28 if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls)) |
29 if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls)) |
29 o.name = 'pagebreak'; |
30 o.name = 'pagebreak'; |