1 Reply Latest reply on Sep 26, 2012 9:18 PM by heathrowe

    Bolding text - and hey, you folks are wonderful to offer v1 for free

    John Hall Level 4

      I need to bold a couple of words of text in a paragraph. Best way to do that? It's not apparent as it is in most WYSIWYG editors.

        • 1. Re: Bolding text - and hey, you folks are wonderful to offer v1 for free
          heathrowe Most Valuable Participant

          You will need to use the html() method on the text element, like this

           

          ////////// Begin Copy here ///////////

          //Format Text with HTML formatting

           

          // get a reference to the text element and assign it to a variable

          var element = sym.$("desc");   

           

          // then format that reference using traditional html code;                                              

          element.html("<p><strong>Adobe® Edge</strong> is a new web motion " +

                 "and interaction design tool that allows designers to bring "+

                 "animated content to websites, using web standards like HTML5,"+

                 "JavaScript, and CSS3.</p>");

           

          ////////////End Copy Here /////////////

           

          Place the above snippet within the Stage > compositionReady handler

           

          Hope this helps

           

          jQuery html() reference here - http://api.jquery.com/html/

          Darrell