From 18240a9201d193a5a2420f8644fa05b7bfbceeec Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 18 Jul 2008 14:59:01 +0000 Subject: - Updated TinyMCE to version 3.1.0.1 --- program/js/tiny_mce/plugins/xhtmlxtras/js/element_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/js/tiny_mce/plugins/xhtmlxtras') diff --git a/program/js/tiny_mce/plugins/xhtmlxtras/js/element_common.js b/program/js/tiny_mce/plugins/xhtmlxtras/js/element_common.js index 724d9d1a9..cc11835fa 100644 --- a/program/js/tiny_mce/plugins/xhtmlxtras/js/element_common.js +++ b/program/js/tiny_mce/plugins/xhtmlxtras/js/element_common.js @@ -136,7 +136,7 @@ SXE.initElementDialog = function(element_name) { element_name = element_name.toLowerCase(); var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); - if (elm != null && elm.nodeName == element_name.toUpperCase()) { + if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) { SXE.currentAction = "update"; } @@ -185,7 +185,7 @@ SXE.insertElement = function(element_name) { SXE.removeElement = function(element_name){ element_name = element_name.toLowerCase(); elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); - if(elm && elm.nodeName == element_name.toUpperCase()){ + if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){ tinyMCEPopup.execCommand('mceBeginUndoLevel'); tinyMCE.execCommand('mceRemoveNode', false, elm); SXE.inst.nodeChanged(); -- cgit v1.2.3