I have been unsuccessful in my research so far, but I am looking for a way for an content editor of a rich text field in Tridion to be able to call a content component from inside a Rich Text field. I am using Razor templates.
Perhaps an example of some content might illuminate what I mean. If the below was rich text, I would want a way for the text "tcm:mytcm" to be identified and processed as a command during publication to render that component from inside the other component this rich text field is in, instead of treating it as text. I set it apart with { to illustrate that some kind of syntax would be appropriate.
Rich text: This is the rich text, and this is the component I want to link to from inside it {tcm:mytcm}. And this is some more rich text that comes after.
Essentially, the main purpose of this would be to provide a way to insert "snippets" of more complex html code inline into the rich text. An example of something to insert would be a hyperlink with various parameters, or a call to a web service variable, etc. The markup/code for that snippet would be generated by the component template for tcm:mytcm and processed during publication in place of the rich text entry that called to it.
If this general methodology is the wrong direction to take, I'm open to any ideas for how to do this insertion. Any advice or direction would be appreciated. I don't see anything in the documentation or in any other threads online so far that address this issue, but perhaps my search terms are not the best.
I have little knowledge of the Razor Mediator, but this is a common challenge with C#, XSLT and Dreamweaver Templates. I think your best bet is to pre-process the Component with either XSLT or C# and replace the liked TCMURI with the XML of the other component or other Data, and them continue with the traditional documented techniques to access data from the package.