Sitecore:强制粘贴为未格式化的文本 [英] Sitecore: Forcing pasting as unformatted text

查看:237
本文介绍了Sitecore:强制粘贴为未格式化的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种很好的方式来强制粘贴作为文本里面的Sitecore里面的富文本字段?我知道Rich Text Editor中有一个粘贴为文本按钮,但是内容作者几乎肯定会按Ctrl + V或右键单击粘贴来放置文本,如果内容来自Word ,所有地狱与标记打破。我们迄今为止的解决方法是粘贴到记事本中,然后复制该文本并将其粘贴到富文本字段中,但该解决方案不够雅致,我讨厌它。



感谢您的时间。 设置

< property name =StripFormattingOnPaste>无< / property>

位于文件 / sitecore / shell / radcontrols / editor / ConfigFile中。 xml



上次我有一个类似于你的要求,我去了那里做了改变,它工作得很好。应该仍然可以工作,除非他们改变了一些东西: - )

Is there a good way to force pasting as text inside Rich Text Fields inside Sitecore? I know there's a "Paste as Text" button in the Rich Text Editor itself, but content authors are almost definitely going to just hit Ctrl+V or Right-Click->Paste to put the text in, and if that content came from Word, all hell breaks loose with the markup. The workaround we have so far is to paste into notepad and then to copy that text and paste it into the Rich Text Field, but that solution is inelegant and I hate it.

Thank you for your time.

解决方案

Take a look at the setting

<property name="StripFormattingOnPaste">None</property>

Located in the file /sitecore/shell/radcontrols/editor/ConfigFile.xml

Last time I had a requirement similar to yours, I went in there and made the change and it worked fine. Should still work, unless they changed something :-)

这篇关于Sitecore:强制粘贴为未格式化的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆