【问题标题】:TinyMCE Image class issueTinyMCE 图像类问题
【发布时间】:2019-03-08 18:48:26
【问题描述】:

我对 TinyMCE 有疑问。

我添加了“Image”插件和“image_class_list”设置来设置类。 当我尝试编辑图像时,我无法点击类字段。

这是我的 JS:

tinymce.init(
{ 
    selector:'#descrizione',
    height: 500,
      plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table paste imagetools wordcount"
      ],
      toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
      content_css: [
        '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
      ],
    image_class_list: [
        {title: 'Responsive', value: 'img-fluid'}
    ],
    images_upload_url: 'ajax/uploadFoto.php',
    automatic_uploads: false,
    setup: function (editor) {
            editor.on('change', function () {
            tinymce.triggerSave();
        });
    }

});

你能帮帮我吗?

【问题讨论】:

    标签: javascript html css tinymce


    【解决方案1】:

    我的猜测是你有某种 CSS 干扰了对话框,因为我在那个对话框中根本没有得到一个水平的紫色 scollbar,即使像你的配置那样使用一个类选项,类字段也显示得很好。

    【讨论】:

      【解决方案2】:

      问题出在 CSS 中,其他 css 文件在选择中有 display:none,我修复了它添加了一个带有显示块的类!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-24
        • 1970-01-01
        • 2015-04-20
        • 2019-01-13
        • 2016-08-19
        • 1970-01-01
        相关资源
        最近更新 更多