includes/clientside/tinymce/plugins/template/editor_plugin_src.js
changeset 543 dffcbfbc4e59
parent 476 f26a69c40431
child 1193 e3b94bd055dc
equal deleted inserted replaced
542:5841df0ab575 543:dffcbfbc4e59
    66 				if (typeof(v) != 'function')
    66 				if (typeof(v) != 'function')
    67 					h = h.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v);
    67 					h = h.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v);
    68 			});
    68 			});
    69 
    69 
    70 			el = dom.create('div', null, h);
    70 			el = dom.create('div', null, h);
       
    71 
       
    72 			// Find template element within div
       
    73 			n = dom.select('.mceTmpl', el);
       
    74 			if (n && n.length > 0) {
       
    75 				el = dom.create('div', null);
       
    76 				el.appendChild(n[0].cloneNode(true));
       
    77 			}
    71 
    78 
    72 			function hasClass(n, c) {
    79 			function hasClass(n, c) {
    73 				return new RegExp('\\b' + c + '\\b', 'g').test(n.className);
    80 				return new RegExp('\\b' + c + '\\b', 'g').test(n.className);
    74 			};
    81 			};
    75 
    82