Copied to clipboard

Flag this post as spam?

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


  • E 3 posts 73 karma points
    Sep 28, 2022 @ 16:29
    E
    0

    Umbraco 10 Customizing TinyMCE

    We have very strict CSP rules that we are following for our website content. Unfortunately the default operation for ctrl+u will create a style attribute on a span that is not allowed. I found the following chunk of code to remove the ctrl+u shortcut for TinyMCE. In Umbraco 10, where would I implement this so that the default umbraco editor would use it?

    tinyMCE.init({
    // Your options here
    setup: function(editor) {
        editor.on("init", function(){
            editor.addShortcut("ctrl+u", "", "");
        });
    } });
    

    Thank you

Please Sign in or register to post replies

Write your reply to:

Draft