Results 1 to 3 of 3

Thread: Drag Text into TextArea, HtmlEditor

  1. #1
    Sencha User
    Join Date
    Jun 2015
    Posts
    3
    Vote Rating
    0
      0  

    Default Drag Text into TextArea, HtmlEditor

    Hi all,
    I need to insert text into a form via Drag and Drop. The form (FormPanel) may contain TextAreas and/or HtmlEditors. I've already got drag sources (I'm dragging Nodes from a TreePanel) and drop targets set up correctly, so inserting the text
    somewhere is working.

    Now it would be nice to have the user decide at which cursor position to insert the text. So far I haven't found any clou or recipe on how to do this with GXT. With the HtmlEditor, it already gets complicated if you want to know the current cursor position.

    But: If you select a piece of text anywhere and drag it into a TextArea or HtmlEditor, you can nicely see and control where it will be inserted. This would be the behaviour I'm looking for, and it's already there.

    Is there any way to have the browser treat my dragged data like a regular piece of text?

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    291
      0  

  3. #3
    Sencha User
    Join Date
    Oct 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Have you solved your problem yet?

Similar Threads

  1. Drag&Drop from TextArea to TextArea
    By sichkant in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 29 Jun 2011, 12:40 AM
  2. Drag Text into TextArea / HtmlEditor
    By TomSeven in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 6 May 2011, 6:43 AM
  3. TextArea or HtmlEditor with text coloured
    By foxmarco in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 11 Jan 2011, 12:29 AM
  4. Transform HtmlEditor to textarea?????
    By rballman in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 4 Apr 2008, 8:12 AM
  5. htmleditor and existing textarea
    By mcohnen in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 13 Dec 2007, 7:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •