includes/clientside/tinymce/plugins/pagebreak/editor_plugin_src.js
changeset 543 dffcbfbc4e59
parent 395 fa4c5ecb7c9a
equal deleted inserted replaced
542:5841df0ab575 543:dffcbfbc4e59
    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';