mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
@@ -137,6 +137,11 @@ export default class Image extends SimpleImage {
|
||||
{
|
||||
tag: "img",
|
||||
getAttrs: (dom: HTMLImageElement) => {
|
||||
// Don't parse images from our own editor with this rule.
|
||||
if (dom.parentElement?.classList.contains("image")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// First try HTML attributes
|
||||
let width = dom.getAttribute("width");
|
||||
let height = dom.getAttribute("height");
|
||||
|
||||
Reference in New Issue
Block a user