phpBB

Code Changes

File: styles/subsilver2/template/editor.js

  Unmodified   Added   Modified   Removed
Line 221Line 221

// Get text selection - not only the post content :(
// IE9 must use the document.selection method but has the *.getSelection so we just force no IE


// Get text selection - not only the post content :(
// IE9 must use the document.selection method but has the *.getSelection so we just force no IE

	if (window.getSelection && !is_ie)

	if (window.getSelection && !is_ie && !window.opera)

	{
theSelection = window.getSelection().toString();
}

	{
theSelection = window.getSelection().toString();
}

Line 351Line 351
*/
function storeCaret(textEl)
{

*/
function storeCaret(textEl)
{

	if (textEl.createTextRange)

	if (textEl.createTextRange && document.selection)

	{
textEl.caretPos = document.selection.createRange().duplicate();
}

	{
textEl.caretPos = document.selection.createRange().duplicate();
}

Line 460Line 460

return caretPos;
}


return caretPos;
}