TinyMCE Paste Button Does Not Work

My question is about the TinyMCE editor. In IE, brower works just fine. But when I insert something into FF and Chrome, I get the message: "Your browser does not support direct access to the buffer. Instead, use the keyboard shortcut Ctrl + X / C / V." I did not find any documents to solve this problem! I need help, thanks!

+3
source share
1 answer

I'm a little late for this, but I have the same problem. I did something and this configuration worked for me.

tinyMCE.init({
    selector: "textarea",
    language: editorLanguage,
    plugins: [
        "autolink lists link image anchor",
        "searchreplace visualblocks",
        "insertdatetime media contextmenu paste"
    ],
    menu: {
        edit: { title: 'Edit', items: 'undo redo | cut copy paste | selectall' },
        insert: { title: 'Insert', items: 'link image' },
        view: { title: 'View', items: 'visualaid' },
        format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat' }
    },
    convert_urls: false,
    paste_data_images: true



});

At a minimum, all you need is:

tinyMCE.init({
    selector: "textarea",
    plugins: "image,paste",
    paste_data_images: true
});

This works for me using the version hosted on cdn (cdn.tinymce.com/4/tinymce.min.js)

Hope this helps someone!

+2
source

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


All Articles