From a3b85d7b8560cdc1057fcaffa3acbd247b4b5b7a Mon Sep 17 00:00:00 2001
From: Thomas B. <thomas@roundcube.net>
Date: Mon, 07 Oct 2013 13:19:03 -0400
Subject: [PATCH] Merge pull request #133 from cwickert/release-0.9-canned-responses

---
 program/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js |   17 +----------------
 1 files changed, 1 insertions(+), 16 deletions(-)

diff --git a/program/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/program/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js
index d62a219..9c99995 100644
--- a/program/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js
+++ b/program/js/tiny_mce/plugins/xhtmlxtras/js/attributes.js
@@ -53,7 +53,6 @@
 	var inst = tinyMCEPopup.editor;
 	var elm = inst.selection.getNode();
 
-	tinyMCEPopup.execCommand("mceBeginUndoLevel");	
 	setAllAttribs(elm);
 	tinyMCEPopup.execCommand("mceEndUndoLevel");
 	tinyMCEPopup.close();
@@ -72,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) {

--
Gitblit v1.9.1