Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Artyom Chernenko 17 posts 91 karma points
    Sep 24, 2015 @ 06:21
    Artyom Chernenko
    0

    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

    Screenshot of what I need So I see 2 theoretical ways to achieve this:

    1. Re-use existing in Umbraco default code editor which is used for regular templates editing (CodeMirror if I'm not mistaken?)
    2. 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

  • Artyom Chernenko 17 posts 91 karma points
    Sep 28, 2015 @ 04:17
    Artyom Chernenko
    0

    So are there any ideas? Maybe just direction where should I look...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies