-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyMCE inside an Angular reactive form retrieves every embedded remote image on every keypress #376
Comments
I've traced this to the following code. From the This is being triggered from the
For my purposes, adding a
I am not sure if this has any unintended side effects but it does stops image requests from occurring until a user stops typing for 1 second. |
@13-gregabytes Could you please provide a replication case. You can fork our code-sandbox if you wish. |
I have created a code-sandbox BUT the issue does not happen there. I needed to modify the code in the sandbox from my original to get it to run. I do have a GitHub repo where the issue does occur. As stated in my first post, I built this demo using the following tinymce-angular documentation
|
I've had a look at the repo you provided. I seem to only be able to replicate on chrome and with network cache disabled. In this case, I would suggest the workaround you've already found or perhaps not using form control and instead retrieving the editor's content on form submission instead. |
This issue is stale because it has been open 30 days with no activity. Please comment if you wish to keep this issue open or it will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
What is the current behavior?
I have TinyMCE-Angular inside an reactive form.
I embedded a remote image in the text.
On every keypress in the editor, I see, in my network tab, a request is made to retrieve the image.
Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.
I first noticed this behaviour in my application. I didn't know if there was something wrong with my implementation so I decided to install TinyMCE-Angular in a new project on its own.
I installed TinyMCE-Angular using this document: https://www.tiny.cloud/docs/tinymce/latest/angular-pm/
I didn't see the behaviour in this bare bones project so I installed reactive forms.
I added the reactive form using this blog post: https://www.tiny.cloud/blog/angular-rich-text-editor/
With TinyMCE-Angular inside a reactive form, I then noticed the behaviour of embedded remote image retrieval with every keypress.
What is the expected behavior?
Do not retrieve remote images with every keypress in the editor.
Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular?
I have noticed this with version 6 and version 7. I do not know what the behaviour is for older versions.
The text was updated successfully, but these errors were encountered: