app/tiny_mce/plugins/xhtmlxtras/js/cite.js
author Sverre Rabbelier <sverre@rabbelier.nl>
Fri, 01 May 2009 01:37:43 +0200
changeset 2294 be2c150d1a1f
parent 154 d2377425d3f2
permissions -rwxr-xr-x
Use python2.5 in our unit tests Patch by: Sverre Rabbelier

 /**
 * $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('cite');
	if (SXE.currentAction == "update") {
		SXE.showRemoveButton();
	}
}

function insertCite() {
	SXE.insertElement('cite');
	tinyMCEPopup.close();
}

function removeCite() {
	SXE.removeElement('cite');
	tinyMCEPopup.close();
}

tinyMCEPopup.onInit.add(init);