"Paste" a menu item that does not appear in tinem

I am using the latest version (4.1), just using a simple example:

<!DOCTYPE html>
<html>
<head><!-- CDN hosted by Cachefly -->
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
        tinymce.init(
        {
        selector:'textarea',
        menu : { // this is the complete default configuration
            file   : {title : 'File'  , items : 'newdocument'},
            edit   : {title : 'Edit'  , items : 'undo redo | cut copy paste pastetext | selectall'},
            insert : {title : 'Insert', items : 'link media | template hr'},
            view   : {title : 'View'  , items : 'visualaid'},
            format : {title : 'Format', items : 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
            table  : {title : 'Table' , items : 'inserttable tableprops deletetable | cell row column'},
            tools  : {title : 'Tools' , items : 'spellchecker code'}
        }
        }

        );
</script>
</head>
<body>
        <textarea>Your content here.</textarea>
</body>
</html>

For some reason, the “insert” menu does not appear on the menu bar. I also tried to download the full package with all the plugins, the same results in both Firefox and Chrome.

+4
source share
1 answer

I needed to add a plugin to the configuration, something like

plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
    ],
+7
source

Source: https://habr.com/ru/post/1545745/


All Articles