0

在 Grapesjs组件中工作

  // Append components directly to the canvas
  editor.addComponents(`<div>
                       
                         <span title="foo">Hello world!!!</span>
                       </div>`);

  // or into some, already defined, component.
 // For instance, appending to a selected component would be:
 editor.getSelected().append(`<div> 
              <span>Hello My Append Component</span>
        </div>`);

当我使用附加得到这个错误

4

0 回答 0