fix: Improvements to image positioning (#3061)

* fix: Empty paragraph below images that confuses block insertion

* Remove spacing for caption when unused
This commit is contained in:
Tom Moor
2022-02-05 10:14:10 -08:00
committed by GitHub
parent ae0644177b
commit c7df74fcc4
5 changed files with 26 additions and 10 deletions

View File

@@ -55,6 +55,8 @@ export default class ComponentView {
? document.createElement("span")
: document.createElement("div");
this.dom.classList.add(`component-${node.type.name}`);
this.renderElement();
}