fix: Pasting of HTML elements in new PM
This commit is contained in:
@@ -42,7 +42,8 @@ export default class Notice extends Node {
|
||||
{
|
||||
tag: "div.notice-block",
|
||||
preserveWhitespace: "full",
|
||||
contentElement: "div.content",
|
||||
contentElement: (node: HTMLDivElement) =>
|
||||
node.querySelector("div.conten") || node,
|
||||
getAttrs: (dom: HTMLDivElement) => ({
|
||||
style: dom.className.includes("tip")
|
||||
? "tip"
|
||||
|
||||
Reference in New Issue
Block a user