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

411
Views
Cómo obtener el contenido del editor TinyMCE usando Blazor

Mi objetivo es configurar cualquier implementación de guardado automático

Tengo un editor TinyMCE en mi componente Blazor y no sé cuál es la mejor manera de obtener el contenido. Puedo cargar el valor de mi modelo usando @bind-Value pero no estoy seguro de recuperar el valor actualizado.

Este es mi código hasta ahora

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" } }; }

Supongo que JS Interop es la mejor manera de implementar esto, pero no estoy seguro de cómo conectarlo para responder a eventos, es decir. onkeypress, onchange....

Estoy usando Blazor y .NET6

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