2
* $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
4
* @author Moxiecode - based on work by Andrew Tetlaw
5
* @copyright Copyright � 2004-2007, Moxiecode Systems AB, All rights reserved.
10
tinyMCE.setWindowArg('mce_windowresize', false);
14
tinyMCEPopup.resizeToInnerSize();
15
SXE.initElementDialog('ins');
16
if (SXE.currentAction == "update") {
17
setFormValue('datetime', tinyMCE.getAttrib(SXE.updateElement, 'datetime'));
18
setFormValue('cite', tinyMCE.getAttrib(SXE.updateElement, 'cite'));
19
SXE.showRemoveButton();
23
function setElementAttribs(elm) {
24
setAllCommonAttribs(elm);
25
setAttrib(elm, 'datetime');
26
setAttrib(elm, 'cite');
29
function insertIns() {
30
var elm = tinyMCE.getParentElement(SXE.focusElement, 'ins');
31
tinyMCEPopup.execCommand('mceBeginUndoLevel');
33
var s = SXE.inst.selection.getSelectedHTML();
35
tinyMCEPopup.execCommand('mceInsertContent', false, '<ins id="#sxe_temp_ins#">' + s + '</ins>');
36
var elementArray = tinyMCE.getElementsByAttributeValue(SXE.inst.getBody(), 'ins', 'id', '#sxe_temp_ins#');
37
for (var i=0; i<elementArray.length; i++) {
38
var elm = elementArray[i];
39
setElementAttribs(elm);
43
setElementAttribs(elm);
45
tinyMCE.triggerNodeChange();
46
tinyMCEPopup.execCommand('mceEndUndoLevel');
50
function removeIns() {
51
SXE.removeElement('ins');
b'\\ No newline at end of file'