I have a same issue in a last question from someone.
last character is still missing when onChange is called.
ProseMirror that Shane said is not working for me.
Source code is simple
<Editor tools={[
[Bold, Italic, Underline, Strikethrough],
[Subscript, Superscript],
[AlignLeft, AlignCenter, AlignRight, AlignJustify],
[Indent, Outdent],
[OrderedList, UnorderedList],
FontSize,
FontName,
FormatBlock,
[Undo, Redo],
[Link, Unlink, InsertImage, ViewHtml],
[InsertTable],
[AddRowBefore, AddRowAfter, AddColumnBefore, AddColumnAfter],
[DeleteRow, DeleteColumn, DeleteTable],
[MergeCells, SplitCell],
]} contentStyle={{
height: 320
}}
onChange={changeEventHandler}
/>
const changeEventHandler = (e) => {
if (e.target.view) {
const view = e.target.view;
if (view) {
let htmlTxt = EditorUtils.getHtml(view.state);
console.log(htmlTxt)
// props.setContent(htmlTxt);
}
}
}
"5" is missing!
How can I solve this?