tui.image-editor
tui.image-editor copied to clipboard
fontFamily should be configurable
Version
"@toast-ui/react-image-editor": "^3.15.2",
Development Environment
macOS / chrome.
Current Behavior
https://github.com/nhn/tui.image-editor/blob/338d7b18b6b6a52962f042e31e46638d88683c4a/apps/image-editor/src/js/action.js#L618
Expected Behavior
Expect to be able to configure font family defaults when editor is initialized.
I used this work around:
editor.on("objectActivated", function (props: any) {
setTimeout(() => {
if (props.fontFamily !== defaultFontFamily) {
editor.changeTextStyle(props.id, {
fontFamily: defaultFontFamily,
});
}
}, 500);
});
@OR13
Is it only added to react-image-editor
?
My work around is only for the editor.
@OR13
You mean not only react-image-editor
but also image-editor
core, right?
Yes, I think so.
@OR13 Thank you for the report. I'll add it to TODO.