我正在使用 tinymce 插件在 textarea 中设置格式化文本。我也在使用图像插入/编辑图像按钮(用于内嵌图像),但浏览文件按钮似乎没有出现在单击它后打开的对话框中,因此,我现在无法选择文件。
下面是插件的初始化和一些我希望看到的图片
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 moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link code image | forecolor backcolor emoticons",
image_advtab: true,
statusbar : false,
menubar : false,
force_p_newlines : false,
force_br_newlines : true,
convert_newlines_to_brs : true,
forced_root_block : false,
paste_text_linebreaktype : "br",
width : 730,
height : 300,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});