Project

General

Profile

Bug #23391 ยป rtehtmlarea_bugfix_14830_v3_typo3_4-3.patch

Administrator Admin, 2010-08-28 08:07

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
if (editor._checkInsertP()) {
HTMLArea._stopEvent(ev);
}
}
} else if (HTMLArea.is_safari && !HTMLArea.is_chrome) {
var brNode = editor._doc.createElement('br');
editor.insertNodeAtSelection(brNode);
brNode.parentNode.normalize();
// Selection issue when an URL was detected
if (editor._unlinkOnUndo) {
brNode = brNode.parentNode.parentNode.insertBefore(brNode, brNode.parentNode.nextSibling);
}
if (!brNode.nextSibling || !/\S+/i.test(brNode.nextSibling.textContent)) {
var secondBrNode = editor._doc.createElement('br');
secondBrNode = brNode.parentNode.appendChild(secondBrNode);
}
editor.selectNode(brNode, false);
HTMLArea._stopEvent(ev);
}
// update the toolbar state after some time
if (editor._timerToolbar) window.clearTimeout(editor._timerToolbar);
editor._timerToolbar = window.setTimeout("HTMLArea.updateToolbar(\'" + editor._editorNumber + "\');", 200);
    (1-1/1)