Add feature similar to Protected Text

  • We use a descendent of TWPRichText with a lot of extra and custom functionality added on. One feature of TWPRichText we make a lot of use of is Protected Text. We display it in a different color, count it separately for billing purposes, etc.

    Now we would like to add a new function very similar to Protected text. Call it Qualified text. It would coexist with Protected text, and would be used in much the same ways - special color display, special counting, and so on. Pretty much exactly the same kind of behavior as Protected text already offers.

    Has anyone done anything like this? Is there some existing aspect of TWPRichText we could make use of, or should we roll our own? Obviously we'd like to avoid modifying the original TWPRichText code, and instead implement new behavior in our descendent component.

    I'm open to any suggestions on how to proceed.

    • Offizieller Beitrag

    Hi,

    You can use bookmarks for this. Bookmarks use text objects, the text inbetween can use a special color using the OnGetAttrColor event.

    Bookmarks can also be used for mailmerge - you can ask by mail for an example.

    Julian