Skip to content
Snippets Groups Projects
Commit 478e2487 authored by chris's avatar chris
Browse files

preserve white spaces

parent b32109fe
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,9 @@ export default (
const parser = DOMParser.fromSchema(
context.pmViews.main.state.config.schema,
);
const parsedContent = parser.parse(elementFromString(text));
const parsedContent = parser.parse(elementFromString(text), {
preserveWhitespace: 'full',
});
// Otherwise, insert it at the placeholder's position, and remove
// the placeholder
// context.pmViews[context.activeViewId].dispatch(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment