app/tiny_mce/plugins/xhtmlxtras/js/acronym.js
author Sverre Rabbelier <srabbelier@gmail.com>
Tue, 25 Nov 2008 23:16:32 +0000
changeset 587 7504504209a3
parent 154 d2377425d3f2
permissions -rwxr-xr-x
Fixed some access related bugs These were not obvious previously, but with the sidebar not showing up when one does not have access, they stood out.

 /**
 * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
 *
 * @author Moxiecode - based on work by Andrew Tetlaw
 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
 */

function init() {
	SXE.initElementDialog('acronym');
	if (SXE.currentAction == "update") {
		SXE.showRemoveButton();
	}
}

function insertAcronym() {
	SXE.insertElement('acronym');
	tinyMCEPopup.close();
}

function removeAcronym() {
	SXE.removeElement('acronym');
	tinyMCEPopup.close();
}

tinyMCEPopup.onInit.add(init);