froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 675 forks source link

bulkRefresh() not working without focus #4528

Closed roelVerdonschot closed 1 week ago

roelVerdonschot commented 2 years ago

If you have a feature suggestion, please add it on the Feature List instead.

I have a custom button where the icon changes based on the state of content (is it saved or not). If i call button.bulkRefresh() the button refreshes correct. But if the editor loses focus and I call button.bulkRefresh() the refresh method on my custom button is not called.

Expected behavior.

If you call button.bulkRefresh() the refresh method of a button is always triggered.

Actual behavior.

The refresh method is only triggered if the editor has focus.

Steps to reproduce the problem.
  1. Add console log to custom button refresh method
  2. Call button.bulkRefresh() when you don't have focus
  3. The console log does not appear in console
Editor version.

4.0.11

OS.

Any OS

Browser.

Any browser

Recording.

-

ilyaskarim commented 1 week ago

We’re closing this issue due to inactivity. If you’re still experiencing this problem on the latest version of our editor, please feel free to reopen the issue and let us know. You can find details on the latest updates here: Froala Editor Changelog.