I have a contenteditable div which contains typical wysiwyg editor html (bold, anchors, lists).  I need to determine if the current cursor is, onKeyDown, at the start and at the end of the div.  The reason for this is, based on the cursor position, a...
I have a jsfiddle here - http://jsfiddle.net/88em6qq9/ - where I'm trying to add <h1> tags around a selection of the entire line: "Here is some content and here too"  Selecting the entire line and releasing the mouse button goes int...
Here is what I am trying to accomplish: When a user uses a mouse, keyboard, or touch to select text inside "myDiv" I want to acquire three discreet chunks of HTML: the HTML before the selection (to the "left" of it), the HTML inside t...
What I am trying to achieve  I am building input-like content editable div. You are supposed to click some tags outside the div to add them inside the div while also being able to type around said tags.  The problem and how to reproduce it  I am usin...
I'm trying to create a typeahead code to add to a wysihtml5 rich text editor. Basically, I need to be able to insert People/hashtag references like Twitter/Github/Facebook... do.  I found some code of people trying to achieve the same kind of thi...
I try to write an editor with contenteditable & execCommand Everything works fine on Firefox, but in chrome has an error with 'delete' command.  Please view bellow photo:    This is my code:  var $obj = $('#myBlockDivId'); var sel...
I am trying to use Rangy in my Google Chrome extension, but I keep on receiving the error "Module 'WrappedSelection' not supported". This is a bare-bones extension so I have not implemented any code in this project other then Rangy....
I am using the highlighter module in Rangy.  I have a div element, which has some html. The html is actually loaded from a file using ajax, I have a button which does this loading.  Once the text is loaded, I can select a portion of the displayed htm...
I am using Rangy to select and restore the cursor position.  It does an excellent job but it has not been designed for when user input is manipulated programmatically and a shorter string is replaced in the innerHTML of the DIV.  I created an example...
I have the following html:  <p>Morbi quis augue vitae quam <a href="#">pharetra| varius</a> at at| urna.</p>   The selection is marked with | characters. Also a screenshot of the selection:    I can extend this selecti...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.