How to use the alloyeditor.EzBtnEmbed 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-embed.js View on Github external
return (
            <button title="{label}" tabindex="{this.props.tabIndex}" disabled="{disabled}">
                <svg>
                    
                </svg>
            </button>
        );
    }
}

AlloyEditor.Buttons[EzBtnEmbed.key] = AlloyEditor.EzBtnEmbed = EzBtnEmbed;
eZ.addConfig('ezAlloyEditor.ezBtnEmbed', EzBtnEmbed);

EzBtnEmbed.defaultProps = {
    command: 'ezembed',
    modifiesSelection: true,
    udwTitle: Translator.trans(/*@Desc("Select a content to embed")*/ 'embed_btn.udw.title', {}, 'alloy_editor'),
    udwContentDiscoveredMethod: 'addEmbed',
    udwConfigName: 'richtext_embed',
};
github ezsystems / ezplatform-richtext / src / bundle / Resources / public / js / OnlineEditor / buttons / ez-btn-embed.js View on Github external
return (
            <button title="{label}" tabindex="{this.props.tabIndex}" disabled="{disabled}">
                <svg>
                    
                </svg>
            </button>
        );
    }
}

AlloyEditor.Buttons[EzBtnEmbed.key] = AlloyEditor.EzBtnEmbed = EzBtnEmbed;

const eZ = (window.eZ = window.eZ || {});

eZ.ezAlloyEditor = eZ.ezAlloyEditor || {};
eZ.ezAlloyEditor.ezBtnEmbed = EzBtnEmbed;

EzBtnEmbed.defaultProps = {
    command: 'ezembed',
    modifiesSelection: true,
    udwTitle: Translator.trans(/*@Desc("Select a Content item to embed")*/ 'embed_btn.udw.title', {}, 'alloy_editor'),
    udwContentDiscoveredMethod: 'addEmbed',
    udwConfigName: 'richtext_embed',
};