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'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...
How do I split a range into multiple rangy ranges cross over multiple nodes?  E.g. I have a range denoted with the { and } (the tokens are not actually in the content):  <p>     I {like eggs. </p> <p>     Yes I} do! </p>   And...
I have a paragraph of text in which the user may place a "pin" to mark a position. Once a pin has been placed, I would like to allow the user to move its position by dragging it to a new location in the paragraph. This is simple to do with bl...
When you are using a WYSIWYG editor, and you select text and apply, for example, bold to it, the browser will wrap the selection with a <span style="font-weight:bold"> tag (assuming you've called document.execCommand("useCSS"...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.