[bug]: Code block syntax highlighting breaks completely upon pasting code (only works when manually typed)
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- TypeScript
- スター
- 61.1k
- フォーク
- 6.1k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 79
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
makeplane/plane のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
[bug]: Email notifications show a broken avatar for users without a profile photo対応中かも @gurnoorpannu が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
makeplane/plane#10009 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
🐛 Bug: Calendar work items cannot be opened on mobile対応中かも @pennnnnnnnnn が 8 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
[bug]: First day of the week section not translated when Idioma is Español対応中かも @deepcfr が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
makeplane/plane#9967 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[bug]: First day of the week section not translated when Idioma is Español対応中かも @Indira-kumar が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
makeplane/plane の issue をすべて見る
似ている issue
-
Sequências em espanhol: «Atualizado em», a aba «Fila» e o valor 'pause' ainda saem em portuguêsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
melgarafael/DeskcommCRM#3104 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug service: webapp
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Ocelot-Social-Community/Ocelot-Social#10684 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nicobailon/pi-subagents#2978 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
getsentry/sentry-conventions#732 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信