Wrap Highlighted Text with Tags

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Wrap Highlighted Text with Tags

    I am trying to write a function to take the highlighted text in design view and
    get its parent tag, then wrap that whole section with another tag.

    using the function dw.getDocumentDOM().source.selectParentTag() to get the
    selected text's parent does not seem to work. i get the following error: "..
    The function balanceTextView() is currently unavailable"

    any way to get the same functionality as
    dw.getDocumentDOM().source.wrapSelection() but to bump it up to the text's
    parent node then wrap tags around it?

    kscap Guest

  2. Similar Questions and Discussions

    1. Text wrap adding a ghost Wrap???
      hello, I was working on creating a clipping mask on a photo by using the pen tool and making a silo. Then I would cut the picture and paste into...
    2. current selected text to highlighted text on mouse up event through java script
      hi everybody, I want to convert the current selected text to highlighted text i.e. to yellow background on mouse up event on pdf form through...
    3. Show highlighted text?
      Hi, I have Illustrator 10 on Win2000 Professional. I must have hit something without noticing because all of the sudden, when editing text, I...
    4. Don't see text being highlighted
      Hi All, Strange thing happening: Every now and then a text box will stop showing me what characters I have highlighted with my cursor. I drag the...
  3. #2

    Default Re: Wrap Highlighted Text with Tags

    i seem to have figured it out...

    dw.getDocumentDOM().selectParent();
    dw.getDocumentDOM().source.wrapSelection();
    kscap Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139