Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
Adding undo levels to TinyMCE

I am using the tinyMce editor to edit PDFs. I want to try and preserve the undo stack from when I close the editor. To do this I serialise the undoManager.data and store it in the metadata of the PDF. Then when loading the document I read the PDFs metadata and deserialise the data. I then run into an issue when trying to add this data back into the undo manager. I am trying to add extra undo levels to the undoManager using: undoManager.add(newUndoLevel)

This works fine and in undoManager.data I can see I have an array with 1 undo element. The issue I am having is that this will only work once. If I try to add a 2nd undo level nothing happens. I can see in the source code that there is an undo level parameter and from what I can gather to add a second undo level I would have to do this: undoManager.add(anotherUndoLevel, {data: 1})

Unfortunately this doesn't do anything either. I have tried many different combinations of this to no avail. If anyone knows the correct way to do this, please let me know

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda