Is there a way to save the changes like changing the background of HTML text that span over multiple tags so that when it is loaded again the changes made should be reflected in the HTML page.  EDIT: Detailed explanation.  When the HTML page is loa...
In JavaScript, it's possible to programmatically select text in an input or textarea element. You can focus an input with ipt.focus(), and then select its contents with ipt.select(). You can even select a specific range with ipt.setSelectionRan...
I need the coordinates in pixels of the beginning of the text selection (anywhere on the page, not in a textarea).  I tried using the cursor coordinates but this didn't work quite well because the cursor coordinates and the beginning of the sel...
I am working on an in-browser editor within a textarea.  I have started looking for some information on dealing with textarea selection and found this jQuery plugin, fieldSelection that does some simple manipulation.    However, it doesn't expl...
I have a div on a HTML page and whenever I press the mouse and move it, it will show that "can't drop" cursor like it selects something. Is there a way to disable selection? I tried CSS user-select with none without success....
Currently I'm getting the selected text in the browser doing this:  window.getSelection();   Now I need to show a tooltip above that text when pressing a custom key(note that the mouse could not be over the text anymore), so in order to do that I...
When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript?  Imagine this HTML code:  <h1>Hello World</h1><p>Hi <b>there!</b></p>...
There are so many issues with contenteditable divs and deleting html and/or non content editable content inside editable divs.  Using an answer by the excellent Tim Down here: How to delete an HTML element inside a div with attribute contentEditable?...
When double-clicking on a html page most browsers select the word you double-click on (or the paragraph you triple-click on). Is there a way to get rid of this behavior?  Note that I do not want to disable regular selection via single-click+dragging;...
Does anyone know of any cross-browser user selection range libraries written in javascript?  I found a few jQuery plugins, (which quite frankly are too limiting and very buggy).  I would just like to know what you have found out there. Don't send...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.