equal
deleted
inserted
replaced
134 addClassesToList('class', 'xhtmlxtras_styles'); |
134 addClassesToList('class', 'xhtmlxtras_styles'); |
135 TinyMCE_EditableSelects.init(); |
135 TinyMCE_EditableSelects.init(); |
136 |
136 |
137 element_name = element_name.toLowerCase(); |
137 element_name = element_name.toLowerCase(); |
138 var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); |
138 var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); |
139 if (elm != null && elm.nodeName == element_name.toUpperCase()) { |
139 if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) { |
140 SXE.currentAction = "update"; |
140 SXE.currentAction = "update"; |
141 } |
141 } |
142 |
142 |
143 if (SXE.currentAction == "update") { |
143 if (SXE.currentAction == "update") { |
144 initCommonAttributes(elm); |
144 initCommonAttributes(elm); |
183 } |
183 } |
184 |
184 |
185 SXE.removeElement = function(element_name){ |
185 SXE.removeElement = function(element_name){ |
186 element_name = element_name.toLowerCase(); |
186 element_name = element_name.toLowerCase(); |
187 elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); |
187 elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); |
188 if(elm && elm.nodeName == element_name.toUpperCase()){ |
188 if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){ |
189 tinyMCEPopup.execCommand('mceBeginUndoLevel'); |
189 tinyMCEPopup.execCommand('mceBeginUndoLevel'); |
190 tinyMCE.execCommand('mceRemoveNode', false, elm); |
190 tinyMCE.execCommand('mceRemoveNode', false, elm); |
191 SXE.inst.nodeChanged(); |
191 SXE.inst.nodeChanged(); |
192 tinyMCEPopup.execCommand('mceEndUndoLevel'); |
192 tinyMCEPopup.execCommand('mceEndUndoLevel'); |
193 } |
193 } |