[CLOSED] Textarea's text selection is not retaining

  1. #1

    [CLOSED] Textarea's text selection is not retaining

    Hi,

    We have created a small text editor as per our requirement. In this text editor, we used html textarea control to type text. on top of this textarea, we have a ext.net combobox with list of style items like bold, italic, underline etc.,. To apply some style, we select some text in textarea and then select a style from the combobox (let's say bold style). (Note:After applying style from combobox we are resetting combobox to default item, 'Apply Style') With some javascript code we are able to modify the textarea content as <b>selected text</b> but, the selected text in textarea is loosing selection.

    I need to retain the selection for the selected text (in textarea) after style has been applied. With some javascript code, I could get this selection but, after my javascript code execution finished, execution going into script manager code. After script manager code execution completed, whatever selection I retained using javascript, is no more visible. I observed this while debugging the javascript in browser.

    Please suggest what I can do to retain textarea selection?

    Thank you,
    Last edited by Daniil; Sep 02, 2014 at 1:07 PM. Reason: [CLOSED]
  2. #2
    Please suggest what I can do to retain textarea selection?
    Unfortunately we do not have any suggestions based upon the description you provided.

    Does the same problem happen if you replace the <ext:TextArea> with a standard html <textarea> element?
    Geoffrey McGill
    Founder

Similar Threads

  1. TextArea with encoded text
    By cwtsang1012 in forum 2.x Help
    Replies: 8
    Last Post: Aug 04, 2014, 5:51 AM
  2. [CLOSED] How to set cursor at the end of the text in TextArea?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 22, 2013, 3:22 PM
  3. [CLOSED] TextArea Selection Range
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 17, 2012, 10:36 AM
  4. TextArea.Text
    By paual in forum 1.x Help
    Replies: 0
    Last Post: May 18, 2012, 3:30 AM
  5. Text counter for a textarea
    By jmilton in forum 1.x Help
    Replies: 1
    Last Post: Oct 11, 2010, 5:06 PM

Posting Permissions