Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.getElementById('indentButton').addEventListener('click', function() {
setIndentation(getCurrentEditor(), Indentation.Increase);
}); handleChange: (editor) => setIndentation(editor, Indentation.Decrease)
},handleEvent: (event, editor) => {
setIndentation(editor, Indentation.Decrease);
event.rawEvent.preventDefault();
},
}; onClick: editor => setIndentation(editor, Indentation.Decrease),
}, handleChange: (editor) => setIndentation(editor, Indentation.Increase)
}, onClick: editor => setIndentation(editor, Indentation.Increase),
}; onClick: editor => setIndentation(editor, Indentation.Increase),
}, onClick: editor => setIndentation(editor, Indentation.Decrease),
};document.getElementById('outdentButton').addEventListener('click', function() {
setIndentation(getCurrentEditor(), Indentation.Decrease);
});handleEvent: (event, editor) => {
setIndentation(editor, Indentation.Increase);
event.rawEvent.preventDefault();
},
};