TinyMCE Editor 不具备所有功能
TinyMCE Editor dosen't have all the features
我在我的网站上为我的文本框使用了 TinyMCE
编辑器,我遵循这个 https://www.tinymce.com/docs/get-started/first-steps/ 并且它工作正常但问题是我没有所有功能。我的就像下图
但这是我所期望的
以下是您可以使用的全部功能(高级插件除外):https://www.tinymce.com/docs/demo/full-featured/。您可能需要根据需要修改 menubar
、plugins
和 toolbar
。
tinymce.init({
selector: 'textarea',
height: 500,
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 imagetools codesample toc'
],
toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
toolbar2: 'print preview media | forecolor backcolor emoticons | codesample',
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
],
content_css: [
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
'//www.tinymce.com/css/codepen.min.css'
]
});
我在我的网站上为我的文本框使用了 TinyMCE
编辑器,我遵循这个 https://www.tinymce.com/docs/get-started/first-steps/ 并且它工作正常但问题是我没有所有功能。我的就像下图
但这是我所期望的
以下是您可以使用的全部功能(高级插件除外):https://www.tinymce.com/docs/demo/full-featured/。您可能需要根据需要修改 menubar
、plugins
和 toolbar
。
tinymce.init({
selector: 'textarea',
height: 500,
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 imagetools codesample toc'
],
toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
toolbar2: 'print preview media | forecolor backcolor emoticons | codesample',
image_advtab: true,
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
],
content_css: [
'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
'//www.tinymce.com/css/codepen.min.css'
]
});