This question is locked. New answers and comments are not allowed.
I need to provide an editor for users to create custom content but within that content I need to insert custom data. I don't just want to have them insert a special character sequence that I would parse and replace because without a doubt the special character sequence would be too long and would throw off the design time layout.
I was hoping that I could create/register some type of custom document element class. Then also a custom toolbar icon. User clicks my icon, opens my custom dialog and I prompt for some data. Then I would insert into the document the necessary object/xaml. It would render a default set of text to the editor so that the user could lay everything out correctly. BUT this text would be readonly. The user could either completely delete the whole text or if they set the cursor inside the text, they could click the toolbar icon again to bring up the dialog to edit the data behind the text.
Is this possible? Are there enough custom hooks and api functions to pull this off? Where would I start. I didn't really see anything in the documentation regarding custom toolbars or custom content.
I was hoping that I could create/register some type of custom document element class. Then also a custom toolbar icon. User clicks my icon, opens my custom dialog and I prompt for some data. Then I would insert into the document the necessary object/xaml. It would render a default set of text to the editor so that the user could lay everything out correctly. BUT this text would be readonly. The user could either completely delete the whole text or if they set the cursor inside the text, they could click the toolbar icon again to bring up the dialog to edit the data behind the text.
Is this possible? Are there enough custom hooks and api functions to pull this off? Where would I start. I didn't really see anything in the documentation regarding custom toolbars or custom content.