我已经用我的程序设置了tinymce,但是当我使用这个功能时,我看不到完全如我在tinymce网站上看到的当我在我的代码点火器中组合tinymce时,这是以下代码,我使用了tinymce in我的计划:
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/tinymce/tinymce.min.js"></script>
<script>
tinymce.init({selector:'textarea'});
</script>
答案 0 :(得分:0)
我在评论中看到您无法上传图片。 TinyMCE提供了有关如何加载完整工具栏的完整脚本。
和@kumar_v,这些插件已经准备好了完整的js。你只需要激活它;不需要额外的插件。
<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 moxiemanager"
],
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>
<form method="post" action="somepage">
<textarea name="content" style="width:100%"></textarea>
</form>