拖放图像在 tinymce 文本编辑器中不起作用

Drag and drop image not working in tinymce text editor

我在 ASP.NET C# 项目中使用 http://www.tinymce.com 插件。 我在 aspx 页面中添加了以下代码

 <script src="../Scripts/TinyEditor/tinymce.min.js"></script>
<script type="text/javascript">
    tinymce.init({
        selector: "textarea",
        theme: "modern",
        plugins: [
            "advlist autolink lists link image charmap print preview hr anchor pagebreak",
            "searchreplace wordcount visualblocks visualchars code fullscreen",
            "insertdatetime media nonbreaking save table contextmenu directionality",
            "emoticons template paste textcolor colorpicker textpattern"
        ],
        toolbar1: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
        toolbar2: "print preview media | forecolor backcolor emoticons",
        image_advtab: true,
        templates: [
            { title: 'Test template 1', content: 'Test 1' },
            { title: 'Test template 2', content: 'Test 2' }
        ]
    });
</script>

现在,每当我们将图像拖放到文本区域时,它不会插入到文本区域中...请帮帮我!!!

如果你想启用图像拖放功能,你必须使用下面的代码明确地做到这一点。

tinymce.init({
    ...
    paste_data_images: true
});