Skip to content
Snippets Groups Projects
Commit 6d5c3465 authored by chris's avatar chris
Browse files

remove caption also on backSpace

parent 0d0a9f51
No related branches found
No related tags found
1 merge request!260Editoria layout
......@@ -85,7 +85,7 @@ const captionPlugin = key =>
},
keyup(view, e) {
// delete caption if figure is deleted
if (e.key === 'Delete') {
if (e.key === 'Delete' || e.code === 'Backspace') {
const figcap = document.getElementsByTagName('figcaption');
const figcapLength = figcap.length;
......
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