Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的项目中使用 froala 编辑器 v2。提交表单后,我通过 ajax 发送数据,我想将编辑器刷新到初始状态。我学习 了froala的方法,但没有找到合适的方法。我想我需要使用方法的组合。有人可以帮忙吗?
这是我的“肮脏”工作:
$('.fr-element.fr-view').html("");
通过将 froala 元素内部的 html 设置为"" (如果您的 froala 生成的元素也.fr-element .fr-view用作类)来清空内容。
""
.fr-element .fr-view