Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE "paste button" does not work

Tags:

tinymce

My question about TinyMCE editor. In IE brower it works fine. But when I paste something in FF & Chrome I'm receiving the message: "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead." I've not found any documentation to solve this problem! I need help ,Thanks!

like image 709
Nata Ermakova Avatar asked Feb 25 '16 09:02

Nata Ermakova


1 Answers

I'm a little late to this, but I was having the same problem. I did some digging, 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 though, all you need is this:

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

This is working for me, using the cdn hosted version ( cdn.tinymce.com/4/tinymce.min.js )

Hope this helps someone!

like image 149
Bren1818 Avatar answered Oct 01 '22 03:10

Bren1818