【问题标题】:ckeditor formatting looks not good after copy and paste from ms word从 ms word 复制和粘贴后,ckeditor 格式看起来不太好
【发布时间】:2015-04-24 13:13:10
【问题描述】:
我有 DRUPAL 网站。我正在使用 ck-editor,但是当用户从 ms-word 复制带有图像的数据并粘贴到 ck-editor 时,格式不会像 ms word 那样保留/维护,并且在提交预览后看起来不太好。在 ms word文件,客户有图片数据。
建议我哪个编辑器适合从 ms word 复制和粘贴到编辑器。我想要保留 ms word 格式位置的编辑器。
【问题讨论】:
标签:
php
html
css
drupal
ckeditor
【解决方案1】:
您是否定期进行复制粘贴? CKEditor 有一个“从 Word 粘贴”按钮,该按钮将删除大部分(全部?)最糟糕的 Word 格式并保留其余部分。编辑工具栏以删除其他粘贴按钮,您的用户始终可以使用 Word 中的粘贴。
你可以像这样配置你的工具栏。
config.toolbar = [
.....,
{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteFromWord', ..... ] },
.....
];