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.
我在grapesjs 工作,只是想知道有没有办法渲染保存在数据库中的HTML 和CSS 以显示在grapesJS 编辑器中。我将 HTML 和 CSS 保存在数据库中,并希望在编辑器中呈现设计。这有可能在grapesJs中实现吗?
我终于找到了这个解决方案。首先,将您的 HTML 和 CSS 保存在变量中。然后,这样做。
editor.setComponents(html); editor.setStyle(css);