0
   

Unable to get property 'createRange' of undefined when loading the page

 
 
maxqin
 
Reply Fri 14 Oct, 2016 08:25 am
function getRange(editor) {
if (ie) return getSelection(editor).createRange();
return getSelection(editor).getRangeAt(0);
}

// getSelection - gets the current text range object
function getSelection(editor) {
if (ie) return editor.doc.selection;
return editor.$frame[0].contentWindow.getSelection();
}
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 853 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Unable to get property 'createRange' of undefined when loading the page
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.49 seconds on 04/25/2024 at 09:06:42