Hello all
I am implementing a kind of emailing plugin for Umbraco and experienced an issue.
I’ve created custom tree ‘Email Templates’ with nodes representing CSHTML Razor templates - files under the ‘~/Views/Emails’ (so it is not shown in the ‘Templates’ tree). I dont need to create any table in the DB so it is enough for me to store just a files and map them to the tree. What I need for now is to edit e-mail templates in the backoffice using a friendly code editor in similar way like it is done with regular templates.
Here is a screenshot of what I need
![Screenshot of what I need][1]
[1]: https://our.umbraco.com//media/upload/8f17ef1b-7708-4deb-90ad-b6fda4d6e293/umbraco-backoffice.png
So I see 2 theoretical ways to achieve this:
- Re-use existing in Umbraco default code editor which is used for
regular templates editing (CodeMirror if I’m not mistaken?) - Add entirely new code editor into the plugin (TinyMCE/CodeMirror/etc)
If the above ways are possible can you please advise on how it can be done technically? Or are there any other possible ways to achieve this?
Thanks
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/71655-custom-templates-editing