TinyMCE “paste button” does not work

前端 未结 1 553
醉酒成梦
醉酒成梦 2021-02-15 17:43

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

1条回答
  •  有刺的猬
    2021-02-15 18:10

    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!

    0 讨论(0)
提交回复
热议问题