Commit Graph

16 Commits

Author SHA1 Message Date
Stefan Hardegger
75c207970d Changing Authors 2025-08-12 12:57:34 +02:00
Stefan Hardegger
3b22d155db restructuring 2025-08-11 14:40:56 +02:00
Stefan Hardegger
379c8c170f Various improvements & Epub support 2025-08-08 14:09:14 +02:00
Stefan Hardegger
57859d7a84 Reading Progress 2025-07-29 14:53:44 +02:00
Stefan Hardegger
fcad028959 scraping and improvements 2025-07-28 13:52:09 +02:00
Stefan Hardegger
f95d7aa8bb Various Fixes and QoL enhancements. 2025-07-26 12:05:54 +02:00
Stefan Hardegger
312093ae2e Story Collections Feature 2025-07-25 14:15:23 +02:00
Stefan Hardegger
6f478ab97a Fix Tag Filtering 2025-07-25 07:49:07 +02:00
Stefan Hardegger
12a8f2ee27 Bugfixes 2025-07-24 16:25:23 +02:00
Stefan Hardegger
a38812877a Fix order on pasting story 2025-07-24 14:51:20 +02:00
Stefan Hardegger
d48e217cbb Enhance Richtext editor 2025-07-24 13:35:47 +02:00
Stefan Hardegger
aae6091ef4 Enhance Richtext editor 2025-07-24 13:15:31 +02:00
Stefan Hardegger
131e2e8c25 Bugfixes 2025-07-24 13:07:36 +02:00
Stefan Hardegger
90428894b4 Improve Richtext Editor 2025-07-24 12:34:27 +02:00
Stefan Hardegger
d489078721 Improve RichTextEditor to preserve formatting on paste
**Enhanced Visual Mode:**
- Add paste event handler that preserves HTML formatting when pasting
- Integrate with shared sanitization configuration for consistent filtering
- Preload sanitization config for optimal performance
- Support for bold, italic, and other basic formatting in visual mode

**Updated Sanitization Config:**
- Add more useful HTML tags: kbd, samp, var, details, summary, colgroup, col
- Add attributes for better table support: start, type for ol
- Add style attributes for more elements: table, ul, ol, li, blockquote, pre, code
- Maintain security while allowing richer content formatting

**User Experience:**
- Users can now paste formatted content (bold, italic, lists, etc.) in visual mode
- Content is automatically sanitized using backend configuration
- Updated help text to reflect new capabilities
- Maintains backward compatibility with plain text input

**Technical Improvements:**
- Async clipboard API support with fallbacks
- Error handling for paste operations
- Consistent sanitization between manual input and paste operations

Resolves issue where pasted formatted content was stripped to plain text in visual mode.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 16:51:50 +02:00
Stefan Hardegger
59d29dceaf inital working version 2025-07-22 21:49:40 +02:00