我使用Froala编辑器内的一个弹出式6角应用程序。应该禁用特性insertImage (不可见)。弗洛拉迪夫看起来是这样的:
<div id="froala-editor" [froalaEditor]="froalaOptions" (froalaInit)="initFroala($event)">Hello, Froala!</div>
在我设置的js (类型记录)上(没有insertImage):
public initFroala(froala) {
$('#froala-editor').froalaEditor({
toolbarButtons: ['fullscreen', 'bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', '|',
'fontFamily', 'fontSize', 'color', 'inlineStyle', 'paragraphStyle', '|', 'paragraphFormat', 'align',
'formatOL', 'formatUL', 'outdent', 'indent', 'quote', '-', 'insertLink', 'insertVideo', 'insertFile', 'insertTable', '|',
'emoticons', 'specialCharacters', 'insertHR', 'selectAll', 'clearFormatting', '|', 'print', 'help', 'html', '|', 'undo', 'redo']
});
}
但是插入图像按钮仍然存在。如何启用insertButton?
谢谢你帮忙。弗兰克
发布于 2019-02-05 11:33:05
可以在要传递的froalaOptions选项中添加工具栏按钮列表。
打字本
froalaOptions: any = {
toolbarButtons: [
'align',
'color',
'fullscreen',
'bold',
'italic']
}
将此选项传递给Froala编辑器
<div id="froala-editor" [froalaEditor]="froalaOptions" (froalaInit)="initFroala($event)">Hello, Froala!</div>
因此,要删除insertImage
按钮,只需就不需要将添加到工具栏按钮列表中。
https://stackoverflow.com/questions/51387254
复制相似问题