This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.editor-styles-wrapper .test-class { | |
display: inline; | |
background-position: left -100% center; | |
background-repeat: repeat-x; | |
background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 50%, #ff6 50%); | |
background-size: 200% .6em; | |
font-weight: bold; | |
padding-bottom: .6em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (richText, element, editor) { | |
const name = 'my-theme/my-theme'; | |
const title = 'test-title'; | |
const className = 'test-class'; | |
richText.registerFormatType(name, { | |
title: title, | |
tagName: 'span', | |
className: className, | |
edit: function ({isActive, value, onChange}) { | |
return element.createElement(editor.RichTextToolbarButton, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (richText, element, editor) { | |
richText.registerFormatType('my-plugin/my-plugin1', { | |
title: 'my-plugin', | |
tagName: 'span', | |
className: 'class1', | |
edit: function ({isActive, value, onChange}) { | |
return element.createElement(editor.RichTextToolbarButton, { | |
icon: 'admin-customizer', | |
title: 'title1', | |
onClick: function () { |