app/tiny_mce/plugins/xhtmlxtras/js/cite.js
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 14 Mar 2009 16:08:09 +0000
changeset 1850 1e39b32ff4d7
parent 154 d2377425d3f2
permissions -rwxr-xr-x
Enable javascript in duplicate students view 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);