@udecode/plate-media
Advanced tools
Comparing version
@@ -319,6 +319,11 @@ "use strict"; | ||
deserializer: { | ||
parse: ({ element }) => ({ | ||
type: plugin.node.type, | ||
url: element.getAttribute("src") | ||
}), | ||
parse: ({ element, type }) => { | ||
if ((0, import_plate6.isSlatePluginElement)(element, type)) { | ||
return; | ||
} | ||
return { | ||
type: plugin.node.type, | ||
url: element.getAttribute("src") | ||
}; | ||
}, | ||
rules: [ | ||
@@ -325,0 +330,0 @@ { |
{ | ||
"name": "@udecode/plate-media", | ||
"version": "42.0.0", | ||
"version": "42.0.5", | ||
"description": "Plate Media plugin", | ||
@@ -59,3 +59,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@udecode/plate": ">=42.0.0", | ||
"@udecode/plate": ">=42.0.5", | ||
"react": ">=18.0.0", | ||
@@ -62,0 +62,0 @@ "react-dom": ">=18.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1091799
0.15%16153
0.14%