Skip to content

feat(#1056): customize HTML exports with CSS and JavaScript - #1311

Open
jinchuntan wants to merge 2 commits into
codexu:devfrom
jinchuntan:feat/html-export-customization-1056
Open

jinchuntan wants to merge 2 commits into
codexu:devfrom
jinchuntan:feat/html-export-customization-1056

Conversation

@jinchuntan

Copy link
Copy Markdown
Contributor

Closes #1056.

Add custom CSS and JavaScript fields under Editor settings. They are saved automatically and included only in exported HTML. Clearing both fields restores the default export. CSS and JavaScript are embedded as UTF-8 data URLs so Unicode and literal closing tags do not break the document.

Added 6 regression tests for encoding and export routing. All 11 Node tests and lint pass. A Chromium check confirms the CSS applies and JavaScript runs in the exported document. Component checks cover editing and queued saves. PDF and Markdown exports keep their original content, and exporting does not execute the custom script inside the app. Native PDF printing itself was stubbed in the test.

The production build passes with #1303 applied temporarily. Labels are included in all six languages.

Assisted by Codex.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 导出可以配置css和js吗?

1 participant