phpBB

Code Changes

File: styles/prosilver/template/editor.js

  Unmodified   Added   Modified   Removed
Line 219Line 219

// 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 347Line 347
*/
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 457Line 457

return caretPos;
}


return caretPos;
}