Skip to content
Snippets Groups Projects
Commit 410771be authored by chris's avatar chris
Browse files

fix transform

parent 0f24a5f1
No related branches found
No related tags found
1 merge request!276Editoria fixes
......@@ -3,11 +3,12 @@ const transform = {
attrs: {
style: { default: null },
class: { default: 'transform' },
},
inclusive: false,
parseDOM: [
{
tag: 'transform',
tag: 'span.transform',
getAttrs(hook, next) {
Object.assign(hook, {
style: hook.dom.getAttribute('style'),
......@@ -17,7 +18,7 @@ const transform = {
},
],
toDOM(hook, next) {
hook.value = ['transform', hook.node.attrs, 0]; // eslint-disable-line no-param-reassign
hook.value = ['span', hook.node.attrs, 0]; // eslint-disable-line no-param-reassign
next();
},
};
......
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