trilium icon indicating copy to clipboard operation
trilium copied to clipboard

(Feature request) Add CKEditor 5 General HTML Support

Open ferrlen opened this issue 2 years ago • 1 comments

Describe feature

Would it be possible to add to CKEditor general html support with the corresponding source editing toolbar button? This would enable directly altering the HTML code and adding tags like

surprise
, buttons, etc. (and maybe <audio>?).

Awesome work with Trillium! It's such a joy to use it, thank you for your work and for making it free to the community!

ferrlen avatar Jun 25 '22 05:06 ferrlen

Hi, this feature seems to be under development and quite immature. As an example, only "classic" editor is supported, Trilium uses "balloon" type editor. I think it's better to wait for now and revisit this issue later once this CKEditor stabilizes.

zadam avatar Jun 29 '22 20:06 zadam

Thanks for the reply @zadam ! By now, I think the General HTML Support feature is already mature, the only issue I found was related to lists that had images, but even that seems to be solved in their github thread. Would you consider including this feature now or the HTML Embed feature to add arbitrary HTML snippets?

I really need the details tag, and allowing ids and classes for all elements would be sweet. If one wants to use a custom CK Editor build, is there a simple way to do it? Or would I have to change the build in the code and then recompile the program?

Thanks again!

ferrlen avatar Dec 21 '22 05:12 ferrlen

If one wants to use a custom CK Editor build, is there a simple way to do it? Or would I have to change the build in the code and then recompile the program?

It's pretty complex. You'd need to recompile trilium's CKEditor fork and then include it into the trilium build.

zadam avatar Dec 21 '22 15:12 zadam

If one wants to use a custom CK Editor build, is there a simple way to do it? Or would I have to change the build in the code and then recompile the program?

It's pretty complex. You'd need to recompile trilium's CKEditor fork and then include it into the trilium build.

Can you please show more detail, which configuration file we need to custom for recpmile?

NguyenThiHuongVN avatar Oct 12 '23 03:10 NguyenThiHuongVN

This is not a supported process, I'm not going to spend time documenting this, sorry.

zadam avatar Oct 18 '23 21:10 zadam