we're currently working on an extension for the Yoast-SEO WordPress-Plugin. One of the features of this extension requires the meta-description within the Yoast-SEO-area to be replaced via JavaScript or jQuery. With our code we have replaced the content of the div-container and also changed the content of the hidden input-field. The only problem we have is that the Yoast-plugin shows an error-message if the user tries to change the content added to the div-container.
It seems like the Yoast-plugin stores the content of the meta-description in some other place (maybe a variable!?) as well which then causes the error of we replace the content of the div and the hidden-input. Does anybody have any experience with this issue? Any help would be greatly appreciated. Thanks in advance!