Till Krüss
2014-02-10 334475a50bcc97a8c326aadff0dcbb61fad40a4f
program/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js
@@ -1,8 +1,11 @@
 /**
 * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
/**
 * attributes.js
 *
 * @author Moxiecode - based on work by Andrew Tetlaw
 * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
 * Copyright 2009, Moxiecode Systems AB
 * Released under LGPL License.
 *
 * License: http://tinymce.moxiecode.com/license
 * Contributing: http://tinymce.moxiecode.com/contributing
 */
function init() {
@@ -50,7 +53,6 @@
   var inst = tinyMCEPopup.editor;
   var elm = inst.selection.getNode();
   tinyMCEPopup.execCommand("mceBeginUndoLevel");
   setAllAttribs(elm);
   tinyMCEPopup.execCommand("mceEndUndoLevel");
   tinyMCEPopup.close();
@@ -69,21 +71,7 @@
         value = valueElm.value;
   }
   if (value != "") {
      dom.setAttrib(elm, attrib.toLowerCase(), value);
      if (attrib == "style")
         attrib = "style.cssText";
      if (attrib.substring(0, 2) == 'on')
         value = 'return true;' + value;
      if (attrib == "class")
         attrib = "className";
      elm[attrib]=value;
   } else
      elm.removeAttribute(attrib);
   dom.setAttrib(elm, attrib.toLowerCase(), value);
}
function setAllAttribs(elm) {