includes/clientside/tinymce/plugins/template/editor_plugin_src.js
changeset 476 f26a69c40431
parent 395 fa4c5ecb7c9a
child 543 dffcbfbc4e59
equal deleted inserted replaced
475:51386f1852b8 476:f26a69c40431
    35 				var dom = ed.dom;
    35 				var dom = ed.dom;
    36 
    36 
    37 				each(dom.select('div', o.node), function(e) {
    37 				each(dom.select('div', o.node), function(e) {
    38 					if (dom.hasClass(e, 'mceTmpl')) {
    38 					if (dom.hasClass(e, 'mceTmpl')) {
    39 						each(dom.select('*', e), function(e) {
    39 						each(dom.select('*', e), function(e) {
    40 							if (dom.hasClass(e, ed.getParam('template_mdate_classes').replace(/\s+/g, '|')))
    40 							if (dom.hasClass(e, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|')))
    41 								e.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format")));
    41 								e.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format")));
    42 						});
    42 						});
    43 
    43 
    44 						t._replaceVals(e);
    44 						t._replaceVals(e);
    45 					}
    45 					}