提交 8c281aa2 authored 作者: lihuihui's avatar lihuihui

富文本粘贴样式修改

上级 c96a1a93
...@@ -45,7 +45,7 @@ const init = { ...@@ -45,7 +45,7 @@ const init = {
height: props.height, height: props.height,
menubar: false, menubar: false,
statusbar: false, statusbar: false,
plugins: 'table charmap fullscreen lists link code preview quickbars', // plugins: 'table charmap fullscreen lists link code preview quickbars',
toolbar: toolbar:
'undo redo | fontsizeselect lineheight bold italic underline strikethrough forecolor backcolor | link quickimage image media table | align hangingindent indent outdent numlist bullist | charmap blockquote hr fullscreen | code preview', 'undo redo | fontsizeselect lineheight bold italic underline strikethrough forecolor backcolor | link quickimage image media table | align hangingindent indent outdent numlist bullist | charmap blockquote hr fullscreen | code preview',
// font_formats: // font_formats:
...@@ -56,7 +56,13 @@ const init = { ...@@ -56,7 +56,13 @@ const init = {
automatic_uploads: true, automatic_uploads: true,
quickbars_insert_toolbar: false, quickbars_insert_toolbar: false,
// style_formats: [{ title: '悬挂缩进', block: 'p', styles: { textIndent: '-2em', paddingLeft: '2em' } }], // style_formats: [{ title: '悬挂缩进', block: 'p', styles: { textIndent: '-2em', paddingLeft: '2em' } }],
content_style: 'img {max-width:100%;}' content_style: 'img {max-width:100%;}',
plugins: ['paste'],
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
paste_as_text: true
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论