We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705e346 commit cd5faaaCopy full SHA for cd5faaa
blocks/edit/da-library/da-library.js
@@ -236,6 +236,11 @@ class DaLibrary extends LitElement {
236
const para = window.view.state.schema.text(e.data.details);
237
window.view.dispatch(window.view.state.tr.replaceSelectionWith(para));
238
}
239
+ if (e.data.action === 'sendHTML') {
240
+ const dom = new DOMParser().parseFromString(e.data.details, 'text/html');
241
+ const nodes = proseDOMParser.fromSchema(window.view.state.schema).parse(dom);
242
+ window.view.dispatch(window.view.state.tr.replaceSelectionWith(nodes));
243
+ }
244
if (e.data.action === 'closeLibrary') {
245
closeLibrary();
246
0 commit comments