trilium icon indicating copy to clipboard operation
trilium copied to clipboard

(Bug report) Some text notes can only be displayed in the case of only reading, and errors in the editor mode

Open SiriusXT opened this issue 1 year ago • 1 comments

Trilium Version

0.59.2

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

windows10

Description

Some text notes can only be displayed in the case of only reading, and the error is reported in the editing mode. For example: Text Note: 图片 View the source code of the note through Open Note Externally: <li> <div> hello </div> </li> or: <pre><code class="hljs language-cobol"><ol><li><div>hello</div></li></ol></code><div></div></pre> This note can only be displayed in only reading mode. The original note was cut from the webpage through the clipper

Error logs

Uncaught (in promise) TypeError: t.getStyle is not a function at Object.getAttributeOnUpcast (:6:973277) at Pc.t.on.priority (:6:976449) at Pc.fire (:6:349381) at Pc._convertItem (:6:573700) at Pc._convertChildren (:6:574157) at Object.convertChildren (:6:572277) at Pc.Vc.upcastDispatcher.on.priority (:6:578173) at Pc.fire (:6:349381) at Pc._convertItem (:6:573805) at Pc.convert (:6:572950) Uncaught (in promise) TypeError: Cannot read properties of null (reading 'start') at Pc.t.on.priority (:6:976350) at Pc.fire (:6:349381) at Pc._convertItem (:6:573700) at Pc._convertChildren (:6:574157) at Object.convertChildren (:6:572277) at Pc.Vc.upcastDispatcher.on.priority (:6:577923) at Pc.fire (:6:349381) at Pc._convertItem (:6:573700) at Pc._convertChildren (:6:574157) at Object.convertChildren (:6:572277)

SiriusXT avatar Mar 24 '23 03:03 SiriusXT

That's unfortunately a CKEditor bug. They get fixed with upgrades, sooner or later.

zadam avatar Mar 24 '23 05:03 zadam