大家好,我正在为后端webapp开发一个CRUD系统,我已经安装了
tinymce
在编辑页面中,我为它添加了脚本。
<script type="text/javascript">
// Initialize your tinyMCE Editor with your preferred options
tinymce.init({
selector: 'textarea',
height: 200,
theme: 'modern',
plugins: 'print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount imagetools contextmenu colorpicker textpattern help',
toolbar1: 'formatselect | bold underline italic strikethrough | backcolor forecolor | fontselect | fontsizeselect | alignleft aligncenter alignright alignjustify | table ',
toolbar2: 'numlist bullist | outdent indent | removeformat | subscript superscript | link unlink',
fontsize_formats: '7px 8px 9px 10px 11px 12px 13px 14px 15px 16px 17px 18px 19px 20px 21px 22px 23px 24px 25px 26px 27px 28px 29px 30px',
image_advtab: true
});
</script>
当我选择
cellspace
和
cellpadding
从编辑器中,它可以工作,并且似乎可以正确地保存它,但是当我进入该元素的视图页面时,该表没有该属性。当我进入chrome中的开发者工具时,我看到:
th, td {
padding: 0
}
如果我禁用该表的正确维度。。。
任何人都可以告诉我问题出在哪里??