将按钮/下拉列表添加到Sitecore Webedit编辑器? [英] Add buttons/dropdownlist to sitecore webedit editor?

查看:112
本文介绍了将按钮/下拉列表添加到Sitecore Webedit编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在sitecore的页面编辑器中查看页面时,是否可以向webedit编辑器添加更多按钮或下拉列表?

Is it possible to add more buttons or a dropdownlist to the webedit editor when you are viewing the page in the page editor in sitecore?

如果您看下面的图片,我想在工具栏中添加一个"H2"按钮.

If you look at the image below I would like to add a "H2" button in the toolbar.

推荐答案

您需要将其添加到/sitecore/system/Settings/Html Editor Profiles/Rich Text Default/WebEdit Buttons/.

然后,要创建h2按钮,请在新项目的点击"字段中输入以下内容:

And, to create a h2-button, enter the following into the Click field of the new item:

chrome:field:execute({command:"FormatBlock", userInterface:true, value:'h2'})

("h2"是您想要的块格式)

('h2' being the block format you want)

这篇关于将按钮/下拉列表添加到Sitecore Webedit编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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