tinymce / tinymce-react

Offical TinyMCE React component
MIT License
938 stars 151 forks source link

Did I not update the initValue settings in time? #386

Closed hexiaochen666 closed 1 year ago

hexiaochen666 commented 1 year ago

image

At first, it was undefined. After refreshing, the initial value was available, but it was not updated?

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3019

hexiaochen666 commented 1 year ago

Ref: INT-3019

I'm sorry, I don't understand what you mean. Could you be more specific?

tiny-james commented 1 year ago

Can you post your editor configuration? Also which version of the integration are you using? Which version of TinyMCE are you using?

The initialValue prop can be set asynchronously since version 3.11.0 of the integration, prior to that it had to be set before initializing the editor.

tiny-james commented 1 year ago

Here is an example of setting the initialValue after the editor has loaded: https://codesandbox.io/s/asynchronous-initial-value-uh75r4

tiny-james commented 1 year ago

Since there has been no reply in a week I am closing this on the assumption it is resolved.