[bug]: Code block syntax highlighting breaks completely upon pasting code (only works when manually typed)
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
The rich-text editor actually contains functional syntax highlighting token rules for PowerShell (as verified when writing single commands line-by-line). However, the editor completely fails to parse and tokenize text content when it is introduced via a Copy-Paste action.
- When a script is pasted into an existing ````powershell` block, the text remains entirely plain white text.
- When the exact same syntax components (variables, string literals, arguments) are typed in manually, the editor instantly maps the CSS highlighting rules correctly.
This indicates a severe bug in the editor's Paste-Handler extension, which suppresses tokenization/re-rendering of the code block nodes upon clipboard input injection.
Steps to reproduce
- Create a PowerShell code block inside an issue description or page using
```powershell - Scenario A (Manual Input): Type a basic snippet by hand (e.g.,
$ApiKey = $env:OPENAI_API_KEY).
-> Result: Variables and values get highlighted instantly. - Scenario B (Paste Input): Copy a multi-line script from an external editor (VS Code, Notepad, etc.) and press Ctrl+V to paste it into the same block.
-> Result: The pasted content drops all syntax formatting and renders completely plain/white.
Expected Behavior
Injecting clipboard data into a language-specific Fenced Code Block node must trigger the underlying lowlight/Prism lexer to parse the block immediately, ensuring that pasted documentation remains fully highlighted and readable.
Environment
- Component: packages/editor or apps/web (Tiptap Paste Handler/Lowlight Node extension)
- Impacted Scope: Multi-line technical documentation snippets.
Environment
Production
Browser
Mozilla Firefox
Variant
Self-hosted
Version
v1.4.1
- Ngôn ngữ chính
- TypeScript
- Star
- 61.1k
- Fork
- 6.1k
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 84
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của makeplane/plane
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
makeplane/plane#10082 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: Email notifications show a broken avatar for users without a profile photoCó thể đã có người làm @gurnoorpannu đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
makeplane/plane#10009 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 Bug: Calendar work items cannot be opened on mobileCó thể đã có người làm @pennnnnnnnnn đã nhận 11 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: First day of the week section not translated when Idioma is EspañolCó thể đã có người làm @deepcfr đã nhận 14 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
makeplane/plane#9967 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: First day of the week section not translated when Idioma is EspañolCó thể đã có người làm @Indira-kumar đã nhận 11 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của makeplane/plane
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Nimblesite/SharpLsp#468 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bundled uv is never updated and trusts the compromised eMudhra certificatesCó thể đã có người làm @FabienDanieau đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bg_wait's blocking mode (stopOnAttention: false) is under-documented and effectively undiscoverableĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
nicobailon/pi-subagents#3019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
db-ux-design-system/core-web#8613 ·
Maintainer thường phản hồi trong vòng 1 ngày