How to use the alloyeditor.ButtonStylesListItem function in alloyeditor

To help you get started, we’ve selected a few alloyeditor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ezsystems / ezplatform-admin-ui / src / bundle / Resources / public / js / alloyeditor / src / buttons / ez-btn-styleslistitem.js View on Github external
import React from 'react';
import AlloyEditor from 'alloyeditor';

export default class EzBtnStylesListItem extends AlloyEditor.ButtonStylesListItem {
    /**
     * Lifecycle. Renders the UI of the button.
     *
     * @instance
     * @memberof ButtonStylesListItem
     * @method render
     * @return {Object} The content which should be rendered.
     */
    render() {
        const className = this.props.name === this.props.activeStyle ? 'ae-toolbar-element active' : 'ae-toolbar-element';

        return (
            <button> {</button>
github ezsystems / ezplatform-richtext / src / bundle / Resources / public / js / OnlineEditor / buttons / ez-btn-styleslistitem.js View on Github external
import React from 'react';
import AlloyEditor from 'alloyeditor';

export default class EzBtnStylesListItem extends AlloyEditor.ButtonStylesListItem {
    /**
     * Lifecycle. Renders the UI of the button.
     *
     * @instance
     * @memberof ButtonStylesListItem
     * @method render
     * @return {Object} The content which should be rendered.
     */
    render() {
        const className = this.props.name === this.props.activeStyle ? 'ae-toolbar-element active' : 'ae-toolbar-element';

        return (
            <button> {</button>