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

AlloyEditor.Buttons[EzBtnImage.key] = AlloyEditor.EzBtnImage = EzBtnImage;
eZ.addConfig('ezAlloyEditor.ezBtnImage', EzBtnImage);

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

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

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

eZ.ezAlloyEditor = eZ.ezAlloyEditor || {};
eZ.ezAlloyEditor.ezBtnImage = EzBtnImage;

EzBtnImage.defaultProps = {
    command: 'ezembed',
    modifiesSelection: true,
    udwTitle: Translator.trans(/*@Desc("Select an image")*/ 'image_btn.udw.label', {}, 'alloy_editor'),
    udwContentDiscoveredMethod: 'addImage',
    udwConfigName: 'richtext_embed_image',
    udwLoadContent: true,
};