Book a Demo

Author Topic: EA 7.1 RichText Editor  (Read 3411 times)

Ondrej Kolenaty

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
EA 7.1 RichText Editor
« on: February 28, 2008, 08:27:51 am »
I would like to make Add-in that will "paste" a name of selected model element and will be able to update the name on request. I noticed that the richtext is stored as a simple HTML. Is there any possibility how use/extend features of the richtext edit used in EA 7.1?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: EA 7.1 RichText Editor
« Reply #1 on: February 28, 2008, 08:41:30 am »
The control itself isn't available, but the automation interface does provide two functions for doing the conversion for you.

See http://www.sparxsystems.com/EAUserGuide71/index.html?repository3.htm for a description of GetFieldFromFormat and GetFormatFromField.

Basically if you have an editor that produces rtf or html output you can convert that to a format suitable to be saved in an EA notes field using Repository.GetFieldFromFormat().

I hope that helps.