On button click RichTextCharacterLimit component not update its value #179
Unanswered
sailendranath
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @fabiankaegy ,
I want to update RichTextCharacterLimit field value on button click but updated value is not reflecting on Visual Editor.
If i click on Code Editor, Its reflecting there and click again on visual editor then its reflecting but its not reflecting immediately after button click.
Example Code :
Block Attribute
attributes: {
content: {
type: 'string',
default: '',
},
},
jsx
edit: ({ attributes, setAttributes }) => {
const updateContent = () => {
const newContent = 'Your new content here';
setAttributes({ content: newContent });
};
},
Beta Was this translation helpful? Give feedback.
All reactions