我有TinyMCE编辑器,每个插件工作正常(如粗体,斜体,对齐,列表)但是当我创建一个表(8x8或任何表)并创建一篇文章时,它不显示表(并且不要将它保存到数据库中)。其他插件工作正常。
我在数据库中有文本类型(我把所有文本都放在textarea中)。
问题是什么?
<textarea name="content" rows="6" cols="35"></textarea>
<script>
tinymce.init({
selector: "textarea",
theme: "modern",
width: "auto",
height: 300,
plugins: [
"advlist autolink link image lists charmap hr anchor pagebreak spellchecker",
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
"save table contextmenu directionality emoticons template paste textcolor"
],
content_css: "css/content.css",
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link table",
style_formats: [
{title: 'Bold text', inline: 'b'},
{title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
{title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
{title: 'Example 1', inline: 'span', classes: 'example1'},
{title: 'Example 2', inline: 'span', classes: 'example2'},
{title: 'Table styles'},
{title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
]
});
</script>