MPS-richtext

Hey,

i need the possibility of prose multiline text parts combined with references to other nodes of my project. I have found the mps-richtext plugin, which seems to be exactely what I am looking for. But I could not find any documentation about how to use it...

What I've done:
  • copied the plugin to the mps-plugins folder
  • imported the richtext language

But what are the next steps? How do I implement a richtext cell? How can I add references to it?

Thank you very much in advance.

Regards,
zappl
6 comments
Hi Zappl,

You may want to have a look at the mbeddr requirements, documentation or c-comment languages. There you can find various examples. In essence, you have to implement an IWord. This word is a regular MPS concept and thus can hold references to an arbitrary other node.

HTH
Bernd
0
Thanks, Bernd! I have added the Concept "Text" of the richtext language to my concept. Then I'm able to write text. Linking to nodes, which implement IWord works also fine. So I did it the right way?!
0
Is there a way to send a string to the "Text" Concept?
Something like: mynode.Text.sendText("bla bla string");
0
On a Word there is a setText(). So just create a Text, add a Word and call setText() on it

HTH
0

Please sign in to leave a comment.