mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 23:21:33 +02: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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user