Sha256: a2b59061bfde0353e955a82579d7b16e02c26dd01b318a04a91dafb36337e7e9

Contents?: true

Size: 1.32 KB

Versions: 355

Compression:

Stored size: 1.32 KB

Contents

/**
 * del.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('del');
	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 insertDel() {
	var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');

	if (elm == null) {
		var s = SXE.inst.selection.getContent();
		if(s.length > 0) {
			insertInlineElement('del');
			var elementArray = SXE.inst.dom.select('del[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 removeDel() {
	SXE.removeElement('del');
	tinyMCEPopup.close();
}

tinyMCEPopup.onInit.add(init);

Version data entries

355 entries across 336 versions & 23 rubygems

Version Path
wagn-1.13.0 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.13.0.pre2 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.13.0.pre1 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.13.0.pre public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.13 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.12 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.11 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.10 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.9 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.8 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
wagn-1.12.7 public/assets/tinymce/plugins/xhtmlxtras/js/del.js
goldencobra-1.4.0 app/assets/javascripts/goldencobra/plugins/xhtmlxtras/js/del.js
goldencobra-1.3.4 app/assets/javascripts/goldencobra/plugins/xhtmlxtras/js/del.js
goldencobra-1.2.8 app/assets/javascripts/goldencobra/plugins/xhtmlxtras/js/del.js
gnuside-tinymce-rails-3.5.8.3 vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js
goldencobra-1.2.0 app/assets/javascripts/goldencobra/plugins/xhtmlxtras/js/del.js
tinymce-rails-3.5.9 vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js
tinymce-rails-3.5.9.pre2 vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js
tinymce-rails-3.5.9.pre vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/js/del.js
it-logica-application-backbone-1.3.24 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js