fix: don’t add tabindex when readonly, fix #2458

This commit is contained in:
Philipp Kühn
2022-02-03 14:54:37 +01:00
parent b9bd469645
commit 01411f8462

View File

@@ -9,8 +9,12 @@ export const Tabindex = Extension.create({
new Plugin({ new Plugin({
key: new PluginKey('tabindex'), key: new PluginKey('tabindex'),
props: { props: {
attributes: { attributes: () => {
tabindex: '0', if (this.editor.isEditable) {
return {
tabindex: '0',
}
}
}, },
}, },
}), }),