Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
¿Confundido con el comportamiento del editor Tiptap?

Estoy probando el editor Tiptap y jugando con un código ficticio. Pero estoy confundido con el comportamiento. ¿Podría alguien ayudarme a entender el comportamiento?

A continuación se muestra el código ficticio que estoy probando (los 4 casos siguientes se probaron individualmente, solo aquí para mencionar que los estoy colocando en un bloque de código debajo de las mismas llaves):

 const customCommand = () => ({commands, state, editor}) => { // Doesn't work. Parent node doesn't change console.log('current node ', state.selection.from) commands.selectParentNode() console.log('parent node ', state.selection.from) // Doesn't work. Parent node doesn't change console.log('current node ', state.selection.from) this.editor.commands.selectParentNode() console.log('parent node ', state.selection.from) // Doesn't work. Parent node doesn't change console.log('current node ', this.editor.view.state.selection.from) commands.selectParentNode() console.log('parent node ', this.editor.view.state.selection.from) // Works. Parent Node changes. console.log('current node ', this.editor.view.state.selection.from) editor.commands.selectParentNode() console.log('parent node ', this.editor.view.state.selection.from) }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!