wp/wp-includes/js/tinymce/utils/form_utils.js
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
     1 /**
     1 /**
     2  * form_utils.js
     2  * form_utils.js
     3  *
     3  *
     4  * Copyright 2009, Moxiecode Systems AB
     4  * Copyright, Moxiecode Systems AB
     5  * Released under LGPL License.
     5  * Released under LGPL License.
     6  *
     6  *
     7  * License: http://tinymce.moxiecode.com/license
     7  * License: http://www.tinymce.com/license
     8  * Contributing: http://tinymce.moxiecode.com/contributing
     8  * Contributing: http://www.tinymce.com/contributing
     9  */
     9  */
    10 
    10 
    11 var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
    11 var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
    12 
    12 
    13 function getColorPickerHTML(id, target_form_element) {
    13 function getColorPickerHTML(id, target_form_element) {
   130 
   130 
   131 				styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
   131 				styleSelectElm.options[styleSelectElm.length] = new Option(key, value);
   132 			}
   132 			}
   133 		}
   133 		}
   134 	} else {
   134 	} else {
   135 		tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
   135 		/*tinymce.each(tinyMCEPopup.editor.dom.getClasses(), function(o) {
   136 			styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
   136 			styleSelectElm.options[styleSelectElm.length] = new Option(o.title || o['class'], o['class']);
   137 		});
   137 		});*/
   138 	}
   138 	}
   139 }
   139 }
   140 
   140 
   141 function isVisible(element_id) {
   141 function isVisible(element_id) {
   142 	var elm = document.getElementById(element_id);
   142 	var elm = document.getElementById(element_id);