为什么TinyMCE不断剥离block引言标签而不将其保存到数据库中?我已经将它和其他元素一起添加到valid_elements
列表中(顺便说一句,这些元素都有效).出于某种原因,只有block引言标签没有被保存,我很困惑为什么.
这是我的代码:
tinymce.init({
selector:'#editor',
height: 500,
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'emoticons template paste help'
],
image_class_list: [
{title: 'Responsive', value: 'img-responsive'},
{title: 'Circle', value: 'img-circle'}
],
relative_urls: false,
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | ' +
'bullist numlist outdent indent | link image | preview media fullpage | ' +
'emoticons | help',
menu: {
favs: {title: 'My Favorites', items: 'code visualaid | searchreplace | emoticons'}
},
menubar: 'favs file edit view insert format tools help',
valid_elements: 'p,blockquote,div[video-container|class],iframe[src|width|height|title|frameborder|allow|allowfullscreen],h1,h2,h3,h4,h5,h6,ul,ol,li,span,figure,figcaption,a[href|target]',
extended_valid_elements: 'img[src|alt|title|width|height],blockquote[class|style|cite]'
});