I'm building an admin project using TinyMCE. At first, when I tried to edit the content in TinyMCE editor, the cursor Jump back to start when hit the enter button. and i found a solution on TinyMCE page on how to build the Editor properly. And then i have this problem, every first or -1 char of the last char i fetch (because this is an edit form) the cursor's missing and after the +2 or -2 from the last char, the editor going well. But if i click on another element on the page, the page refresh not on my purpose, here is my code:
I'm building an admin project using TinyMCE. At first, when I tried to edit the content in TinyMCE editor, the cursor Jump back to start when hit the enter button. and i found a solution on TinyMCE page on how to build the Editor properly. And then i have this problem, every first or -1 char of the last char i fetch (because this is an edit form) the cursor's missing and after the +2 or -2 from the last char, the editor going well. But if i click on another element on the page, the page refresh not on my purpose, here is my code:
const BodyEditor = ({ initialValue, onChange }) => { const [value, setValue] = useState(initialValue ?? "");
};
const initialBodyValue = form.getValues("body");
What is the expected behavior? The editor not refreshing accidentaly every time i click on another element on page
Which versions of TinyMCE, and which browser / OS are affected by this issue? "@tinymce/tinymce-react": "^4.3.2"