gpt4 book ai didi

javascript - TinyMCE 图像类问题

转载 作者:太空宇宙 更新时间:2023-11-04 06:26:13 24 4
gpt4 key购买 nike

我对 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();
});
}

});

enter image description here

你能帮帮我吗?

最佳答案

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

关于javascript - TinyMCE 图像类问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55069265/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com