Skip to content
Snippets Groups Projects
Commit 5e72530a authored by chris's avatar chris
Browse files

fix firefox focus

parent dc0d680b
No related branches found
No related tags found
1 merge request!501Translations
......@@ -55,7 +55,9 @@ export default props => {
blur: (view, event) => {
event.preventDefault();
if (view && event.relatedTarget === null) {
view.focus();
setTimeout(() => {
view.focus();
});
} else {
const fakeCursor = document.getElementById('fake-cursor');
if (fakeCursor) {
......
......@@ -227,11 +227,18 @@ img.ProseMirror-separator {
color: #000;
}
@-moz-document url-prefix() {
span#fake-cursor::before {
height: 18px !important;
}
}
span#fake-cursor::before {
display: inline;
content: '';
border-right: 1px solid black;
height: 19px;
height: 23px;
position: absolute;
z-index: 999;
}
\ No newline at end of file
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