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...
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 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 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...
What does this error mean in IE10/11:  Error: Could not complete the operation due to error 800a025e.    And how would I debug it?  It says its this line:  this.nativeSelection.removeAllRanges();   https://code.google.com/p/rangy/source/browse/trunk/...
I am making use of a contenteditable div in combination with the rangy Javascript library to insert HTML at the cursor position.  End of the day the contents of the div commonly looks like:  <div contenteditable="true">     "Hello &...
I'm using the rangy library and can select text in a content editable as follows:  var sel = rangy.getSelection(); alert(sel);   I can't figure out how to get the selected text parent node/element.  For example, if I'm selecting text that...
I have a <div /> which is contenteditable and can contain several types of HTML elements such as <span />, <a />, <b />, <u /> and so on.  Now when I select text in my contenteditable I would like to have a button that r...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.