zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

Error editing on Android Firefox #1482

Closed nigelsim closed 3 years ago

nigelsim commented 3 years ago

Using Trilium 0.45.6 I am having issues editing some notes (type Text) where the Enter key starts failing. This seems to be related to bullet lists.

Remote debugging reveals the following stack trace:

Uncaught CKEditorError: split-operation-position-invalid
Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/…port/error-codes.html#error-split-operation-position-invalid
    i https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    _validate https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    Fl https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    fire https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    e https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    split https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    K_ https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    execute https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    execute https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    change https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    execute https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    decorate https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    fire https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    e https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    execute https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    execute https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    init https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    fire https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    Gk https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    fire https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    fire https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    onDomEvent https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    observe https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    fire https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    o https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    attach https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    listenTo https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    observe https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    observe https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    attachDomRoot https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    init https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    create https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    promise callback*create/< https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    create https://notes/#root/l14svkiXiRbj/Ch9AUNULJaJy/DupQlFn4Ja9R-l4Vl line 2 > injectedScript:5
    initEditor https://notes/app/widgets/type_widgets/editable_text.js:102
    doRender https://notes/app/widgets/type_widgets/editable_text.js:79
    render https://notes/app/widgets/basic_widget.js:59
    refresh https://notes/app/widgets/note_detail.js:116
    tabNoteSwitchedAndActivatedEvent https://notes/app/widgets/tab_aware_widget.js:76
    callMethod https://notes/app/widgets/component.js:86
    handleEvent https://notes/app/widgets/component.js:46
    promise callback*handleEvent https://notes/app/widgets/component.js:46
    handleEventInChildren https://notes/app/widgets/component.js:61
    handleEvent https://notes/app/widgets/component.js:47
    handleEventInChildren https://notes/app/widgets/component.js:61
    handleEvent https://notes/app/widgets/component.js:47
    handleEventInChildren https://notes/app/widgets/component.js:61
    handleEvent https://notes/app/widgets/component.js:47
    triggerEvent https://notes/app/services/app_context.js:84
    triggerEvent https://notes/app/widgets/component.js:53
    openTabWithNote https://notes/app/services/tab_manager.js:206
    loadTabs https://notes/app/services/tab_manager.js:96
    allowUpdateWithoutChange https://notes/app/services/spaced_update.js:43
    loadTabs https://notes/app/services/tab_manager.js:94
    start https://notes/app/services/app_context.js:33
    async* https://notes/app/mobile.js:8
nigelsim commented 3 years ago

I'd just add that there are similar errors on Chrome for Android.

zadam commented 3 years ago

Hi, this is probably bug in CKEditor. This is out of my area of expertise, so I usually wait it out until the CKEditor guys eventually fix it.

HiFiJ commented 3 years ago

Hi, just chiming in as I am suffering badly from this issue as well - losing "Enter" key functionality as well as severly/repeatedly duplicating letters and words when using "backspace" on the standard Android keyboard GBoard. At first I thought using an alternative keyboard like "Hacker's Keyboard" might be a workaround, but later on got hit with the problem there as well. I find myself repeatedly in situations where all mobile input stopped working for me, leaving no other options besides closing the browser and restarting the session.

Thanks for Trilium, it's brilliant!