@thinkeloquent/rd2020-designer-app-dock
v1.13.5
Published
// if(selectorState) { // elementHighlight.initialize({ // editableTags: getSelectableTags(), // onReSelect: (prev) => console.log('onReSelect'), // onSelect: (cur, prev) => { // const textElement = textChildElementOnly(cur);
Downloads
12
Readme
// if(selectorState) {
// elementHighlight.initialize({
// editableTags: getSelectableTags(),
// onReSelect: (prev) => console.log('onReSelect'),
// onSelect: (cur, prev) => {
// const textElement = textChildElementOnly(cur);
// elementChangesetText.selectElement(document, cur, (data) => {
// console.log({ data })
// changeset.setOriginal(data.original);
// changeset.setPending(data.pending);
// });
// cur.focus();
// },
// onRemove: (cur, prev) => {
// elementChangesetText.cleanup();
// },
// onClickIgnore: (cur, prev) => elementHighlight.removeHighlight(),
// onHoverIgnore: (cur, prev) => console.log('onHoverIgnore'),
// });
// } else {
// elementHighlight.cleanup();
// }