PHP 5.3.29-pl0-gentoo
Preview: ins.js Size: 1.32 KB
/home/www/idcceurope.com/www/idcceurope.com/admin/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js

/**
 * ins.js
 *
 * Copyright 2009, Moxiecode Systems AB
 * Released under LGPL License.
 *
 * License: http://tinymce.moxiecode.com/license
 * Contributing: http://tinymce.moxiecode.com/contributing
 */

function init() {
	SXE.initElementDialog('ins');
	if (SXE.currentAction == "update") {
		setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
		setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
		SXE.showRemoveButton();
	}
}

function setElementAttribs(elm) {
	setAllCommonAttribs(elm);
	setAttrib(elm, 'datetime');
	setAttrib(elm, 'cite');
	elm.removeAttribute('data-mce-new');
}

function insertIns() {
	var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');

	if (elm == null) {
		var s = SXE.inst.selection.getContent();
		if(s.length > 0) {
			insertInlineElement('ins');
			var elementArray = SXE.inst.dom.select('ins[data-mce-new]');
			for (var i=0; i<elementArray.length; i++) {
				var elm = elementArray[i];
				setElementAttribs(elm);
			}
		}
	} else {
		setElementAttribs(elm);
	}
	tinyMCEPopup.editor.nodeChanged();
	tinyMCEPopup.execCommand('mceEndUndoLevel');
	tinyMCEPopup.close();
}

function removeIns() {
	SXE.removeElement('ins');
	tinyMCEPopup.close();
}

tinyMCEPopup.onInit.add(init);

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
541 B lrw-r----- 2011-10-20 21:45:03
Edit Download
559 B lrw-r----- 2011-10-20 21:45:05
Edit Download
3.39 KB lrw-r----- 2011-10-20 21:45:07
Edit Download
541 B lrw-r----- 2011-10-20 21:45:08
Edit Download
1.32 KB lrw-r----- 2011-10-20 21:45:09
Edit Download
6.99 KB lrw-r----- 2011-10-20 21:45:11
Edit Download
1.32 KB lrw-r----- 2011-10-20 21:45:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).