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('alignRightButton').addEventListener('click', function() {
setAlignment(getCurrentEditor(), Alignment.Right);
});
onClick: editor => setAlignment(editor, Alignment.Right),
};
onClick: editor => setAlignment(editor, Alignment.Center),
};
handleChange: (editor) => setAlignment(editor, Alignment.Right)
},
onClick: editor => setAlignment(editor, Alignment.Right),
},
document.getElementById('alignCenterButton').addEventListener('click', function() {
setAlignment(getCurrentEditor(), Alignment.Center);
});
handleChange: (editor) => setAlignment(editor, Alignment.Left)
},
onClick: editor => setAlignment(editor, Alignment.Left),
},
handleChange: (editor) => setAlignment(editor, Alignment.Center)
},
document.getElementById('alignLeftButton').addEventListener('click', function() {
setAlignment(getCurrentEditor(), Alignment.Left);
});