includes/clientside/tinymce/tiny_mce_popup.js
changeset 476 f26a69c40431
parent 459 31c23016ab62
child 543 dffcbfbc4e59
equal deleted inserted replaced
475:51386f1852b8 476:f26a69c40431
    95 	},
    95 	},
    96 
    96 
    97 	requireLangPack : function() {
    97 	requireLangPack : function() {
    98 		var u = this.getWindowArg('plugin_url') || this.getWindowArg('theme_url');
    98 		var u = this.getWindowArg('plugin_url') || this.getWindowArg('theme_url');
    99 
    99 
   100 		if (u && this.editor.settings.language)
   100 		if (u && this.editor.settings.language) {
   101 			document.write('<script type="text/javascript" src="' + u + '/langs/' + this.editor.settings.language + '_dlg.js' + '"></script>');
   101 			u += '/langs/' + this.editor.settings.language + '_dlg.js';
       
   102 
       
   103 			if (!tinymce.ScriptLoader.isDone(u)) {
       
   104 				document.write('<script type="text/javascript" src="' + u + '"></script>');
       
   105 				tinymce.ScriptLoader.markDone(u);
       
   106 			}
       
   107 		}
   102 	},
   108 	},
   103 
   109 
   104 	pickColor : function(e, element_id) {
   110 	pickColor : function(e, element_id) {
   105 		this.execCommand('mceColorPicker', true, {
   111 		this.execCommand('mceColorPicker', true, {
   106 			color : document.getElementById(element_id).value,
   112 			color : document.getElementById(element_id).value,