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