Replies: 8 comments 8 replies
-
Hi, this was already brought up but is not supported yet: #1293 and #965 The biggest issue is support in CKEditor: ckeditor/ckeditor5#8248 |
Beta Was this translation helpful? Give feedback.
-
Yes, but:
LukaszGudel <https://github.com/LukaszGudel> commented on 16 Dec 2020
<ckeditor/ckeditor5#8686 (comment)>
We are aware of this issue and you can read more about it here - #8248
<ckeditor/ckeditor5#8248>. Also, feel free to add
👍 to the first post and join the discussion to bump its popularity!
Currently "unknown" protocol in a link is replaced by '#'. But only inside
the editor view. If you use editor.getData() then in returned string you
will find <a> tag with unchanged href attribute.
(See: ckeditor/ckeditor5#8686)
What does this mean for the CKEditor instance as configured and used by
trilium-notes?
Am Di., 19. Jan. 2021 um 13:56 Uhr schrieb zadam <[email protected]>:
… Hi, this was already brought up but is not supported yet: #1293
<#1293> and #965
<#965>
The biggest issue is support in CKEditor: ckeditor/ckeditor5#8248
<ckeditor/ckeditor5#8248>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1549 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACADLW7CDSFSE5HRA4CQZI3S2V6PNANCNFSM4WIWMAOQ>
.
|
Beta Was this translation helpful? Give feedback.
-
I made a trilium script to make file paths in normal text double-clickable. It bypasses all of CKEditor and just registers a global double click handler which checks whether the clicked element matches a file path regex and is italicized. That means it doesn't show a different cursor or any indication of the file being opened. It will open folders with the explorer and files with their default application. https://gist.github.com/laundmo/de1f386fac9f9e797fd77022d63967c9 |
Beta Was this translation helpful? Give feedback.
-
@laundmo , very thanks for the link file open script, and based on your script, i just hack a little , which suit the code is given below
it will get below operation |
Beta Was this translation helpful? Give feedback.
-
By the way , @zadam , can you consider to give a default operation that treate the local file as the common external link ? |
Beta Was this translation helpful? Give feedback.
-
Hi, is it possible to a portable path like {trilium_folder}\files\filexy.pdf |
Beta Was this translation helpful? Give feedback.
-
e.G. .\files\filexy.pdf |
Beta Was this translation helpful? Give feedback.
-
Is this portable to the new trilium next version? I tried it but it doesn´t work because require("electron") is not defined. I tried to fix the script but with my knowledge i failed. Does sb has a hint for me how to adapt the skripts for trilium next? |
Beta Was this translation helpful? Give feedback.
-
How about links to the local file system by using to file:// url protocol?
Well, right now it just doesn't work: nothing happens when you click on such link.
Anybody out there who would find this feature useful too?
Please comment, thanks.
Beta Was this translation helpful? Give feedback.
All reactions