Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Get onPaste() event information in render()

オープン
#2,807 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

まず、render() と onPaste() 周辺のエディターのライフサイクルを追跡し、画像アップロードプラグインがファイル入力を作成して onClick をトリガーするタイミングに注目します。ドラッグアンドドロップの動作を壊さずにイベントコンテキストを公開できるかを確認します。完了の条件は、貼り付けまたはドロップした画像でファイルブラウザーが開かなくなり、画像の直接挿入では意図した動作が維持されることです。

索引モデルが issue の本文から書いたものです。

説明

It seems that onPaste() fires after render(), I need to access whether or not the render() has been triggered by onPaste()... Anyway to do this or pass the onPaste() event information into the render()?

Use case, I have created an image upload plugin. The render() creates a file input which I then trigger an onClick event so it opens up the file browser straight away. Clicking add image then clicking another button to add image is horrible UX.

However, onPaste() this is onClick event is not required for dragging and dropping images etc. And currently dragging and dropping images will still open the file browser after pasting because the input is still created and the onClick happens before the onPaste() code runs.

The onPaste() code runs after render() I need a way to check if the render() is triggered by and onPaste event so I can disable this input onClick event.

Thanks

主要言語
TypeScript
スター
32k
フォーク
2.2k
平均マージ
2日 1時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codex-team/editor.js のほかの issue

codex-team/editor.js の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。