mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +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
|
* http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
|
||||||
*/
|
*/
|
||||||
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue