CoreFiles by mySites.guru
none.js33 lines, 823 bytes, from Joomla_3.7.0-beta2-Beta-Full_Package.zip
Raw History Compare with 3.7.0-beta1
md5
7b3030daf13e4dec93221cdc6b2a1207
sha1
54ee1ebf13b8ce05275c565d21f444a2f3c08356
sha256
332c1c55ec1de369d5f8f0e8afd939b645225a9994ffeb4fa85fc3df23ebd540
/**
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

/**
 * Editor None
 */
function insertAtCursor(myField, myValue)
{
	if (document.selection)
	{
		// IE support
		myField.focus();
		sel = document.selection.createRange();
		sel.text = myValue;
	} else if (myField.selectionStart || myField.selectionStart == '0')
	{
		// MOZILLA/NETSCAPE support
		var startPos = myField.selectionStart;
		var endPos = myField.selectionEnd;
		myField.value = myField.value.substring(0, startPos)
			+ myValue
			+ myField.value.substring(endPos, myField.value.length);
	} else {
		myField.value += myValue;
	}
}

function jInsertEditorText(text, editor)
{
	insertAtCursor(document.getElementById(editor), text);
}

The same content is in 4 releases, Joomla 3.7.0-alpha2 to 3.7.0-beta3. See them all, or every version of this file.