glpi
glpi copied to clipboard
TinyMCE not always loaded when needed
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- [x] I have searched the existing issues
Version
main
Bug description
TinyMCE is not always loaded when it is needed. This may be part of a larger issue with sector-based loading, but more specifically this is a concrete example of the issue #18105 is trying to resolve.
- Navigate to a Network Equipment and switch to the Notes tab
- Navigate to Assets > Software
- Navigate back to the Network Equipment form
- See in the browser console that "tinyMCE is not defined" and see that the editor doesn't initialize when clicking "Add a note" in the Notes tab for the Network Equipment
This is probably an issue in prior versions of GLPI.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
Since TinyMCE is now widely used; maybe should it be always loaded.
That is another solution, but it is a fairly large library. It is true that is is used on many sectors but I am not so sure TinyMCE editors are actually widely loaded. I think the on-demand solution I had is the better option.