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
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?
Custom templates editing
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
So I see 2 theoretical ways to achieve this:
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
So are there any ideas? Maybe just direction where should I look...
is working on a reply...