Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return () => setBlockType(type)
}
return this.options.levels.reduce((items, level) => ({
...items,
...{
[`Shift-Ctrl-${level}`]: setBlockType(type, { level }),
},
}), {})
}
return attrs => {
if (attrs.tag === 'p') {
type = schema.nodes.paragraph;
}
return setBlockType(type, {
class: null,
...attrs
});
};
}
keys({ type }) {
return {
'Shift-Ctrl-\\': setBlockType(type),
}
}
return attrs => setBlockType(type, attrs)
}
keys({ type }) {
return {
'Shift-Ctrl-\\': setBlockType(type),
}
}