PageRenderTime 43ms CodeModel.GetById 39ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/static/scripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js

http://n23.googlecode.com/
JavaScript | 25 lines | 15 code | 4 blank | 6 comment | 2 complexity | b4705ac45a8761aa13cdd599f671b383 MD5 | raw file
 1 /**
 2 * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
 3 *
 4 * @author Moxiecode - based on work by Andrew Tetlaw
 5 * @copyright Copyright Š 2004-2008, Moxiecode Systems AB, All rights reserved.
 6 */
 7
 8function init() {
 9	SXE.initElementDialog('acronym');
10	if (SXE.currentAction == "update") {
11		SXE.showRemoveButton();
12	}
13}
14
15function insertAcronym() {
16	SXE.insertElement('acronym');
17	tinyMCEPopup.close();
18}
19
20function removeAcronym() {
21	SXE.removeElement('acronym');
22	tinyMCEPopup.close();
23}
24
25tinyMCEPopup.onInit.add(init);