How to use ImageResize with react. I can't find any sample. I want to resize image which I add from CKEditor on my react component.
<CKEditor editor={ClassicEditor}
data="<p>Hello from CKEditor 5!</p>"
onInit={editor => {
editor.plugins.get(
"FileRepository"
).createUploadAdapter = loader => {
return new UploadAdapter(loader)
}
//editor.plugins.add("ImageResize") or something?
console.log("Editor is ready to use!", editor)
}}
onChange={(event, editor) => {
const data = editor.getData()
console.log({ event, editor, data })
}}
onBlur={(event, editor) => {
console.log("Blur.", editor)
}}
onFocus={(event, editor) => {
console.log("Focus.", editor)
}}
/>