NotePlan / NotePlan/plugins

Q: How to get editor when HTML window has focus

Aperta
#373 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@EduardMe ci sta già lavorando.

Dal 4/12/2022.

API question UI
Lingua principale
JavaScript
Stelle
204
Fork
82
Merge medio
22h 27m
PR unite (30g)
3

Descrizione

In Reviews plugin, I now have a set of action buttons at the top:
CleanShot 2022-12-04 at 23 24 54@2x

Most trigger opening a different note in the Editor, for the user to do work on.
However the 'Complete' and 'Toggle Pause' buttons want to do work on whatever is open in the Editor. The problem is that when the HTML window has the focus -- as it always has when you have clicked the button -- the Editor is then null.

I'm 99% sure this worked 6+ weeks ago. But I'm treating this as a question, not a bug, as it may uncover a deeper architectural question which we want to consider. But assigning to @EduardMe to see what he thinks should be happening at the moment.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.