[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6229) Implement DnD support for selected text in VPE
Yahor Radtsevich (JIRA)
jira-events at lists.jboss.org
Tue Jun 1 07:38:51 EDT 2010
[ https://jira.jboss.org/browse/JBIDE-6229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12533391#action_12533391 ]
Yahor Radtsevich commented on JBIDE-6229:
-----------------------------------------
To implements this, a method to locate the selected text on the screen is necessary. Currently I have two different approaches, but none of them is working good enough:
1.- Insert invisible DIVs before and after the selected text
- Get screen position of the DIVs
- Delete the DIVs from the DOM tree
Weak points:
- this approach modifies DOM tree
- selection disappears in the case if a DIV is inserted before the selected text node (before symbol with index 0).
2.- Clone the selected text node
- Replace the original node by the clone
- Insert invisible DIVs and get their position as in the 1st approach.
- Replace the clone with the original back
This approach does not modify DOM tree, but I faced a XULRunner bug when selection disappears from the screen.
> Implement DnD support for selected text in VPE
> ----------------------------------------------
>
> Key: JBIDE-6229
> URL: https://jira.jboss.org/browse/JBIDE-6229
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Affects Versions: 3.1.0.GA
> Reporter: Yahor Radtsevich
> Assignee: Yahor Radtsevich
> Fix For: 3.2.next
>
>
> See the summary.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list