UNPKG

@kademi/keditor

Version:

KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents

16 lines (12 loc) 492 B
import CSS_CLASS from '../constants/cssClass'; import openSidebar from '../sidebar/openSidebar'; export default function () { let self = this; let contentAreasWrapper = self.contentAreasWrapper; contentAreasWrapper.on('click', `.${CSS_CLASS.CONTAINER_SETTING}`, function (e) { e.preventDefault(); let btn = $(this); let container = btn.closest(`.${CSS_CLASS.CONTAINER}`); openSidebar.call(self, container); }); };