includes/clientside/tinymce/plugins/table/js/cell.js
changeset 543 dffcbfbc4e59
parent 459 31c23016ab62
child 778 57ce13805b6f
equal deleted inserted replaced
542:5841df0ab575 543:dffcbfbc4e59
    30 	var dir = ed.dom.getAttrib(tdElm, 'dir');
    30 	var dir = ed.dom.getAttrib(tdElm, 'dir');
    31 	var scope = ed.dom.getAttrib(tdElm, 'scope');
    31 	var scope = ed.dom.getAttrib(tdElm, 'scope');
    32 
    32 
    33 	// Setup form
    33 	// Setup form
    34 	addClassesToList('class', 'table_cell_styles');
    34 	addClassesToList('class', 'table_cell_styles');
       
    35 	TinyMCE_EditableSelects.init();
       
    36 
    35 	formObj.bordercolor.value = bordercolor;
    37 	formObj.bordercolor.value = bordercolor;
    36 	formObj.bgcolor.value = bgcolor;
    38 	formObj.bgcolor.value = bgcolor;
    37 	formObj.backgroundimage.value = backgroundimage;
    39 	formObj.backgroundimage.value = backgroundimage;
    38 	formObj.width.value = width;
    40 	formObj.width.value = width;
    39 	formObj.height.value = height;
    41 	formObj.height.value = height;
    40 	formObj.id.value = id;
    42 	formObj.id.value = id;
    41 	formObj.lang.value = lang;
    43 	formObj.lang.value = lang;
    42 	formObj.style.value = ed.dom.serializeStyle(st);
    44 	formObj.style.value = ed.dom.serializeStyle(st);
    43 	selectByValue(formObj, 'align', align);
    45 	selectByValue(formObj, 'align', align);
    44 	selectByValue(formObj, 'valign', valign);
    46 	selectByValue(formObj, 'valign', valign);
    45 	selectByValue(formObj, 'class', className);
    47 	selectByValue(formObj, 'class', className, true, true);
    46 	selectByValue(formObj, 'celltype', celltype);
    48 	selectByValue(formObj, 'celltype', celltype);
    47 	selectByValue(formObj, 'dir', dir);
    49 	selectByValue(formObj, 'dir', dir);
    48 	selectByValue(formObj, 'scope', scope);
    50 	selectByValue(formObj, 'scope', scope);
    49 
    51 
    50 	// Resize some elements
    52 	// Resize some elements
    54 	updateColor('bordercolor_pick', 'bordercolor');
    56 	updateColor('bordercolor_pick', 'bordercolor');
    55 	updateColor('bgcolor_pick', 'bgcolor');
    57 	updateColor('bgcolor_pick', 'bgcolor');
    56 }
    58 }
    57 
    59 
    58 function updateAction() {
    60 function updateAction() {
    59 	var el = ed.selection.getNode();
    61 	var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0];
    60 	var inst = ed;
    62 
    61 	var tdElm = ed.dom.getParent(el, "td,th");
    63 	tinyMCEPopup.restoreSelection();
    62 	var trElm = ed.dom.getParent(el, "tr");
    64 	el = ed.selection.getNode();
    63 	var tableElm = ed.dom.getParent(el, "table");
    65 	tdElm = ed.dom.getParent(el, "td,th");
    64 	var formObj = document.forms[0];
    66 	trElm = ed.dom.getParent(el, "tr");
       
    67 	tableElm = ed.dom.getParent(el, "table");
    65 
    68 
    66 	ed.execCommand('mceBeginUndoLevel');
    69 	ed.execCommand('mceBeginUndoLevel');
    67 
    70 
    68 	switch (getSelectValue(formObj, 'action')) {
    71 	switch (getSelectValue(formObj, 'action')) {
    69 		case "cell":
    72 		case "cell":