includes/clientside/tinymce/plugins/xhtmlxtras/jscripts/cite.js
author Dan
Sat, 01 Dec 2007 02:39:49 -0500
changeset 251 a1ccf990db6b
parent 1 fe660c52c48f
permissions -rw-r--r--
Fixed: sanitation loop on ampersands in encodeAttribute() (this was MediaWiki's fault)

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

function preinit() {
	// Initialize
	tinyMCE.setWindowArg('mce_windowresize', false);
}

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

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

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