Sitecore 富文本 Html 编辑器配置文件 - 设置全局默认值
好吧,我不敢相信这在任何地方都找不到,所以我问这个问题。
有没有办法在 Sitecore 中设置默认的 Html 编辑器配置文件,这样我就不会覆盖每个单独的富文本字段上的源字段?
例如,我想将其设为 Html 编辑器的默认选项:
/sitecore/system/Settings/Html Editor Profiles/Rich Text Medium
OK I can't believe this can't be found anywhere so I'm asking the question.
Is there a way to set the default Html Editor Profile in Sitecore so I don't have the override the Source field on each individual Rich Text field?
e.g. I want to make this the default option for the Html editor:
/sitecore/system/Settings/Html Editor Profiles/Rich Text Medium
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个老问题,但这是我在 Sitecore 6.5 中找到的解决方案 - 我希望在 6.5 中做同样的事情:
您可以将值更改为 web.config 中默认编辑器的路径。这将在未定义源的所有字段中发生变化。
Its an old question but here is the solution I found in Sitecore 6.5 - I was looking to do the same thing in 6.5:
You can change the value to the path of your default editor in the web.config. This will change is across all fields where the source is not defined.
如果未定义源,它似乎会退回到“/sitecore/system/Settings/Html Editor Profiles/Rich Text Default”。因此,如果您尝试修改此默认配置文件,则每个 RTE 字段都会默认获取这些修改,而无需指定来源。
不过我自己从来没有尝试过...
It seems to fall back to the "/sitecore/system/Settings/Html Editor Profiles/Rich Text Default" in case the source is not defined. Thus, if you try to modify this default profile, every RTE field will obtain these modifications by default, without specifying the source.
Never tried it myself, though...