includes/clientside/tinymce/tiny_mce_src.js
changeset 117 7cfdbb2fd17a
parent 40 723bb7acf914
equal deleted inserted replaced
116:77c75179bb95 117:7cfdbb2fd17a
   557 		}
   557 		}
   558 	},
   558 	},
   559 
   559 
   560 	addMCEControl : function(replace_element, form_element_name, target_document) {
   560 	addMCEControl : function(replace_element, form_element_name, target_document) {
   561 		var id = "mce_editor_" + tinyMCE.idCounter++;
   561 		var id = "mce_editor_" + tinyMCE.idCounter++;
   562 		var inst = new TinyMCE_Control(tinyMCE.settings);
   562     
       
   563     var inst = new TinyMCE_Control(tinyMCE.settings);
   563 
   564 
   564 		inst.editorId = id;
   565 		inst.editorId = id;
   565 		this.instances[id] = inst;
   566 		this.instances[id] = inst;
   566 
   567 
   567 		inst._onAdd(replace_element, form_element_name, target_document);
   568 		inst._onAdd(replace_element, form_element_name, target_document);
  2492 var tinyMCELang = {};
  2493 var tinyMCELang = {};
  2493 
  2494 
  2494 /* file:jscripts/tiny_mce/classes/TinyMCE_Control.class.js */
  2495 /* file:jscripts/tiny_mce/classes/TinyMCE_Control.class.js */
  2495 
  2496 
  2496 function TinyMCE_Control(settings) {
  2497 function TinyMCE_Control(settings) {
       
  2498   
  2497 	var t, i, to, fu, p, x, fn, fu, pn, s = settings;
  2499 	var t, i, to, fu, p, x, fn, fu, pn, s = settings;
  2498 
  2500 
  2499 	this.undoRedoLevel = true;
  2501 	this.undoRedoLevel = true;
  2500 	this.isTinyMCE_Control = true;
  2502 	this.isTinyMCE_Control = true;
  2501 
  2503   
  2502 	// Default settings
  2504 	// Default settings
  2503 	this.settings = s;
  2505 	this.settings = s;
  2504 	this.settings['theme'] = tinyMCE.getParam("theme", "default");
  2506 	this.settings['theme'] = tinyMCE.getParam("theme", "default");
  2505 	this.settings['width'] = tinyMCE.getParam("width", -1);
  2507 	this.settings['width'] = tinyMCE.getParam("width", -1);
  2506 	this.settings['height'] = tinyMCE.getParam("height", -1);
  2508 	this.settings['height'] = tinyMCE.getParam("height", -1);