How to use the alloyeditor.ButtonLinkEdit 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-linkedit.js View on Github external
* @method invokeWithFixedScrollbar
     * @param {Function} callback invoked after saving current scrollbar position
     */
    invokeWithFixedScrollbar(callback) {
        if (navigator.userAgent.indexOf('Chrome') > -1) {
            const scrollY = window.pageYOffset;

            callback();
            window.scroll(window.pageXOffset, scrollY);
        } else {
            callback();
        }
    }
}

AlloyEditor.Buttons[EzBtnLinkEdit.key] = AlloyEditor.ButtonLinkEdit = EzBtnLinkEdit;
eZ.addConfig('ezAlloyEditor.ezBtnLinkEdit', EzBtnLinkEdit);
github ezsystems / ezplatform-richtext / src / bundle / Resources / public / js / OnlineEditor / buttons / ez-btn-linkedit.js View on Github external
* @method invokeWithFixedScrollbar
     * @param {Function} callback invoked after saving current scrollbar position
     */
    invokeWithFixedScrollbar(callback) {
        if (navigator.userAgent.indexOf('Chrome') > -1) {
            const scrollY = window.pageYOffset;

            callback();
            window.scroll(window.pageXOffset, scrollY);
        } else {
            callback();
        }
    }
}

AlloyEditor.Buttons[EzBtnLinkEdit.key] = AlloyEditor.ButtonLinkEdit = EzBtnLinkEdit;

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

eZ.ezAlloyEditor = eZ.ezAlloyEditor || {};
eZ.ezAlloyEditor.ezBtnLinkEdit = EzBtnLinkEdit;