gpt4 book ai didi

javascript - Tiny MCE - 只显示基本设置?

转载 作者:行者123 更新时间:2023-11-29 21:47:17 25 4
gpt4 key购买 nike

我已经下载了 Tiny MCE 的“全套”版本。我按照指示将它放在我的 php 表单中。但我只得到准系统的基本设置。我在插件文件夹中有所有插件???我按照说明使用以下代码:

<script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea"
});
</script>

它工作正常但我无法显示插件和高级功能?请参见屏幕截图。 screen shot b=of baritones setup

如何配置才能显示所有插件和功能?

最佳答案

<script type="text/javascript" src="<your installation path>/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
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 colorpicker textpattern"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});
</script>

关于javascript - Tiny MCE - 只显示基本设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30660234/

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