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: 669 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Unable to get property 'createRange' of undefined when loading the page
Copyright © 2020 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 07/08/2020 at 08:52:34