设置内容功能返回[对象对象]
我正在使用此脚本来获取Tinymce的内容:
let editorContent;
editorContent.set(tinymce.get("firstEditor").getContent());
收到内容后,我将其作为字符串值保存到我的数据库中。 在需要时,我希望能够检索值并将其显示在同一Tinymce编辑器中。我尝试使用下面的脚本来做到这一点,但最终显示了[对象对象] ..
tinymce.get("firstEditor").setContent(editorContent);
是否有人知道可能导致此问题的原因?
I'm using this script to get the content of TinyMCE:
let editorContent;
editorContent.set(tinymce.get("firstEditor").getContent());
After receiving the content, I save it to my database as a string value.
When needed I want to be able to retrieve the value and display it in the same TinyMCE editor. I tried using the script below to do so but that ends up displaying [object Object]..
tinymce.get("firstEditor").setContent(editorContent);
Does anybody have some clue to what could cause this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在字符串变量上使用“ .get()”来启动解决方案!
因此,我不是:
我使用此命令:
I fount the solution, using ".get()" on the string variable worked!
So instead of:
I used this command: