2 Replies Latest reply on Nov 17, 2009 6:32 AM by ajabon

    wanna know how to operating..Window>EditText>Textselection

    ajabon Level 1

      Hi there,

       

      I'm using CS3 & later at home & office.

      this question is about ScriptUI by JavaScript.

       

      I want to make selection in edittext field, and get the selected text.

      I found 'textselection' property in JavaScript Reference.

      But it never exists in my edittext object on data browser of ESTK.

      When there is actually using it, let me see  a sample code, please.

      google did not teach me.

        • 1. Re: wanna know how to operating..Window>EditText>Textselection
          G.Singelmann

          I only manage to set/change the selection myself. See my test rig enclosed.

           

          I would say this is quite buggy.

          • 2. Re: wanna know how to operating..Window>EditText>Textselection
            ajabon Level 1

            Gerald,

            thanks for your reply and writing code.

            while I touching edittext field, console displays "da: undefined", click the "tell button" , console displays "0", and "text: " was into selected area.

             

            Only being able to put out the change by using the range of the selection is a large harvest to me. **

             

            I think that the description of the ninth line might be a mistake,**

            I rewrote by way of experiment and executed it.**

            That is, textSelection to textselection.

            Still, changes other than the display's of the console becoming "da: " were not seen. **

            Will this property be still a bug? **

             

            **.....Because I was not so good at English, the line with this mark borrowed the power of the translation site. When it is a strange by any chance expression, I'm sorry. **