Improve JavaScript and CSS injection dialog - #2775
Conversation
Screen recordingSVID_20260316_170402_1.mp4 |
|
Thank you @guanglinn
I take this with grain of salt to be honest. I know from other comments that theres a meaningful interest to move on to it - and thus to WebUI instead of the current editor solution. |
|
@gsantner |
|
I think this will be a significant milestone for Markor |
Signed-off-by: Li Guanglin <guanglinn@qq.com>
|
Close this PR due to PR #2834 based on this branch. |





Hello, @gsantner
JavaScript and CSS injection is a powerful feature for Markor, but the experience of injection dialog is really bad.
Related issues:
#2765 - Improve the user experience of JavaScript and CSS injection dialog
In order to make it better to use, this PR implemented the following features (can greatly enhance UX):
Major features above for code editing dialog are supported by CodeMirror, which is a powerful text editor kernel.
Obsidian and GitHub are all using CodeMirror, which can proven that CodeMirror is stable enough for production.
Some great features of CodeMirror:
Lightweight and efficient, the size of build files for Markor is only about 500 KB;
Multiple code language support, see Language Support;
Highly customizable styles and themes extensions, see CodeMirror Styling Example;
Rich programming interface and extensions, see Extension;
Excellent performance and huge document support, see Huge Document Support: load a document with millions of lines;
Optimizing for mobile devices, it used platform's native selection and editing features on Android devices;
Strong community support;
LICENSE.
CodeMirror development and build guidance for Markor
Who is using CodeMirror?
See Sponsors