富文本编辑器可以去除 Microsoft Word 格式吗?
我正在构建一个(CakePHP)网站,其中包含一个管理部分,允许对某些输入的数据进行富文本编辑。目前我正在使用 TinyMCE,但考虑到客户的一些要求(或至少是非常好的),我不确定是否有更好的工具来完成这项工作。
理想情况下,如果用户要从 Microsoft Word 剪切和粘贴内容,这将自动丢失其格式并粘贴为纯文本。 TinyMCE 可以在粘贴所有粘贴文本时去除格式吗?或者是否有另一个富文本编辑器特别擅长做到这一点?还是选项三?
非常感谢!
I'm building a (CakePHP) website with an admin section that allows rich text editing of some of the entered data. Currently I'm using TinyMCE but I'm not sure if there isn't a better tool for the job, given some of the requirements (or at least would-be-very-nice-to-haves) of the client.
Ideally, if a user were to cut and paste content from Microsoft Word, this would automatically lose its formatting and be pasted as plaintext. Can TinyMCE strip formatting from all pasted text, as it is being pasted? Or is there another rich text editor that is notably good at doing this? Or an option three?
Many thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们在 TinyMCE 中使用“pastetext”和“pasteword”选项(为用户提供仅粘贴文本或尝试使用所有格式的选项),效果非常好。
http://tinymce.moxiecode.com/wiki.php/Plugin:paste
We're using the "pastetext" and "pasteword" option in TinyMCE (to give the users the option to paste text-only or try to use all formatting) and it works pretty good.
http://tinymce.moxiecode.com/wiki.php/Plugin:paste
我使用 CkeEditor。这是一个帮助器:
http:// Bakery.cakephp.org/articles/wernerhp/2010/08/31/cksource-helper-for-ckeditor
I use CkeEditor. Here is a helper for it:
http://bakery.cakephp.org/articles/wernerhp/2010/08/31/cksource-helper-for-ckeditor