views:

15

answers:

0

So far I have figured out how to make dialogs, return values and insert new html and elements.

My comment sections are as follows:

<span id="comment4" comment="this is a comment">
  <p>
    This is some HTML.
  </p>
</span>

I'm having a difficult time getting the editor to recognize that a particular section has a comment and adding the appropriate items to the context menu on right-click (similar to scayt, or links). I'm going through the scayt plugin code and coming up dry. Any shortcuts? code snippets?