equal
deleted
inserted
replaced
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, |