I am after a definitive, cross-browser solution to set the cursor/caret position to the last known position when a contentEditable='on' <div> regains focus.  It appears default functionality of a content editable div is to move the ca...
Hai Guys,          I want to set cursor at a position of length 14 on a textbox which will not have a value.. Iknow initially cursor will be at 0 i want it to be at 14...
I am writing a autocompleter for a content editable DIV (need to render html content in the text box. So preferred to use contenteditable DIV over TEXTAREA). Now I need to find the cursor position when there is a keyup/keydown/click event in the DI...
I have logic to insert a  tag in a contenteditable div. I want to set the cursor to the start of the following element after the insertion. The code I have to do this is:  function insertNodeAtCaret(node) { if(typeof window.getSelection !== 'unde...
I am working on a simple (I thought) word processor. It uses contenteditable. I have a list of words that I want to always appear highlighted.  <article contenteditable="true" class="content">     <p>Once upon a time, ther...
I have a form with a textarea (id = details).   Is there a way I can insert the HTML code for a line break (<br />) at the cursor position when hitting Enter within this textarea ?  I would only need this to get to work in IE.   <textarea cl...
I am making a little word prediction plugin for tinyMCE and need to extract a bit of text and later insert text from a list of predicted words. The insertion should be no problem, as I know where the cursor is and can use the mceInsertContent command...
I have the following Javascript, HTML and CSS code    function distanceBetween(point1, point2) {     return Math.sqrt(Math.pow(point2.x - point1.x, 2) + Math.pow(point2.y - point1.y, 2)); }  function angleBetween(point1, point2) {     return Math.ata...
Are there any javascript Rich Text Editors that support getting and setting the cursor position?...
I've got an editor in a contentEditable div inside a Windows Store app WebView, and because of quirks in contentEditable handling of PageUp / PageDown I've had to implement my own Page Up / Page Down by trapping the key down event in Javascri...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.