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

420
Vistas
How to get the contents of TinyMCE editor using Blazor

My goal is to set up any autosave implementation

I have a TinyMCE editor on my Blazor component and i dont know the best way to get the content from it. I can load the value from my model by using @bind-Value but am unsure of getting the updated value back.

This is my code so far

NotesPage.razor

<div class="editor" style="width: -webkit-fill-available; overflow: scroll; height: 100vh; padding: 0;">
    <Editor ApiKey='my-api-key'
            CloudChannel="5"
            Conf="@editorConf"
            @bind-Value="SelectedNote.Content" />
</div>

@code{
   private NoteDTO SelectedNote { get; set; } = new();
   private Dictionary<string, object> editorConf = new Dictionary<string, object> { { "menubar", false }, { "plugins", "link image imagetools code advlist codesample table" }, { "toolbar", "undo redo | styleselect | forecolor | bold italic | table tabledelete | alignleft aligncenter alignright alignjustify | outdent indent | link image | code codesample" }, { "table_toolbar", "tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol" } };
}

Im assuming JS Interop is the best way to implement this but im unsure as how to hook it up to respond to events ie. onkeypress, onchange....

I am using Blazor and .NET6

about 4 years ago · Santiago Gelvez
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