添加按钮/下拉列表到sitecore webedit编辑器?

Ras*_*oov 1 sitecore page-editor

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

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

在此输入图像描述

And*_*röm 6

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

并且,要创建h2按钮,请在新项目的Click字段中输入以下内容:

chrome:field:execute({command:"FormatBlock", userInterface:true, value:'h2'})
Run Code Online (Sandbox Code Playgroud)

('h2'是你想要的块格式)