Blazored / TextEditor

Rich text editor for Blazor applications - Uses Quill JS
MIT License
276 stars 58 forks source link

[Bug] If added an image you cant load the content to a variable #68

Closed mxritzdev closed 11 months ago

mxritzdev commented 11 months ago

Describe the bug if i try to load the editor content to a variable, while an image is in the editor, the page goes to "Attempting to reconnect to the server"

To Reproduce Steps to reproduce the behavior:

  1. Add an image to the editor
  2. (i added a button to load the html to a variable, like in the docs)
  3. then it says attempting to reconnect to the server

Expected behavior It should load to the variable

ADefWebserver commented 11 months ago

This is a limitation of the blazor javascript interop. You can load a reference to an image (using an HTML image tag), but, if you put the actual contents of the image into the editor (the byte contents), it is too big and crashes when you try to marshal that data back to Blazor.

mxritzdev commented 11 months ago

Thank you... It works now!