[英]TinyMCE is not showing some toolbar elements
I'm trying to use the latest TinyMCE in my project (the project uses jQuery 3 if that matters), and my problem is that if I initialize the textarea like this: 我正在尝试在项目中使用最新的TinyMCE(如果需要的话,项目将使用jQuery 3),而我的问题是,如果我像这样初始化textarea:
tinymce.init({
selector: '#idOfTextarea',
menubar: false,
toolbar: 'bold italic underline strikethrough | bullist numlist outdent indent | link | copy paste undo redo | removeformat'
});
Then bullist, numlist, and link is missing. 然后,Bullist,numlist和链接丢失了。 There are no errors on the console output, and the other buttons are working well. 控制台输出上没有错误,其他按钮运行良好。 If I look at source, they don't even have a placeholder. 如果我看一下源代码,他们甚至都没有占位符。
Has anyone encountered this problem before? 有人遇到过这个问题吗? Is there a solution? 有解决方案吗?
Thank you in advance! 先感谢您!
You have to update the initialisation code as below : 您必须按以下方式更新初始化代码:
tinymce.init({
selector: '#idOfTextarea',
menubar: false,
plugins: [
"advlist autolink lists link "
],
toolbar: 'bold italic underline strikethrough | bullist numlist outdent indent | link | copy paste undo redo | removeformat'
});
To use bullist, numlist, and link, you've to add plugins 要使用Bullist,numlist和link,您必须添加插件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.