caret
How can I select the letter beside a text cursor with Javascript or jQuery?
I\'m using jQuery and Lettering.js to wrap each letter in an <h1> with a span and give it a unique ID. I\'ve also set contenteditable=true on the <h1> so when I click on it I can edit the[详细]
2023-02-03 10:52 分类:问答Set Caret position with JTextArea in JScrollPane
Right now I have a JTextArea inside of a JScrollPane. For the current content it has both a vertical and horizontal scroll bar showing up. I\'m trying to implement a search functionality where a user[详细]
2023-02-02 22:22 分类:问答TextBox caret goes wrong when changing the underlying property value
See the following example: <Window xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"[详细]
2023-01-31 14:18 分类:问答Saving and loading the caret position in a textarea via JavaScript
I\'m looking for a method to save and load the caret position in a textarea in a web-application, so that when the user re-opens the web-application they开发者_运维技巧 are automatically taken back to[详细]
2023-01-30 00:43 分类:问答xy coordinates of caret in iframe
i am trying to make a wysiwyg edi开发者_运维问答tor using iframe i want no scrollbar so text should start appearing on next line when max-width is reached .i need the caret coordinates for that please[详细]
2023-01-29 10:38 分类:问答Get style at caret position in a JTextPane
I have a basic text editor that can style documents (bold, underline, italicize, underline, align left/right/center, color, font size/family), and that all works great. The problem I\'m having is that[详细]
2023-01-28 19:05 分类:问答API C# - how to get the handle of the textbox where the caret is in another program?
i w开发者_JAVA技巧ant to get the handle of the textbox where the caret is in, in another program. all i can find is how to get the list of the controls in a window with \"EnumChildWindows\", and then[详细]
2023-01-27 20:48 分类:问答Jtextpane click to create popup menu effect on selection not as intended
I have a JTextPane sitting in a JFrame, with a popup menu that is assigned to the JTextPane through the JTextPane.setComponentPopupMenu method.[详细]
2023-01-27 17:10 分类:问答preventDefault(), scrolling and accessibility
I\'m adding a JavaScript-powered sub-window to a site. Basically, part of the UI is positioned off the left edge of the screen until the user triggers a link; then it\'s moved into a visible position.[详细]
2023-01-24 04:55 分类:问答Getting the keyboard cursor location/coordinates in all applications
Right now I\'m using the functions GetCaretPos() and GetGUIThreadInfo() to get the current keyboard cursor/caret coordinates. These work properly in applications like Notepad and Wordpad and return开发[详细]
2023-01-22 03:14 分类:问答