mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/12093] Check that document.selection is supported. Conflicts: phpBB/adm/style/editor.js phpBB/assets/javascript/editor.js phpBB/styles/prosilver/template/editor.js
This commit is contained in:
commit
bd8951cfbe
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ function mozWrap(txtarea, open, close) {
|
|||
* http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
|
||||
*/
|
||||
function storeCaret(textEl) {
|
||||
if (textEl.createTextRange) {
|
||||
if (textEl.createTextRange && document.selection) {
|
||||
textEl.caretPos = document.selection.createRange().duplicate();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue