annotate WebContent/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js @ 8:11baadcdd2c8

start of new Annotator API implementation.
author casties
date Mon, 19 Mar 2012 14:50:28 +0100
parents 0be9d53a6967
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
1 /**
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
2 * cite.js
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
3 *
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
4 * Copyright 2009, Moxiecode Systems AB
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
5 * Released under LGPL License.
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
6 *
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
7 * License: http://tinymce.moxiecode.com/license
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
8 * Contributing: http://tinymce.moxiecode.com/contributing
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
9 */
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
10
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
11 function init() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
12 SXE.initElementDialog('cite');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
13 if (SXE.currentAction == "update") {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
14 SXE.showRemoveButton();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
15 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
16 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
17
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
18 function insertCite() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
19 SXE.insertElement('cite');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
20 tinyMCEPopup.close();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
21 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
22
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
23 function removeCite() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
24 SXE.removeElement('cite');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
25 tinyMCEPopup.close();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
26 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
27
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
28 tinyMCEPopup.onInit.add(init);