glpi icon indicating copy to clipboard operation
glpi copied to clipboard

TinyMCE not always loaded when needed

Open cconard96 opened this issue 5 months ago • 2 comments

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.

  1. Navigate to a Network Equipment and switch to the Notes tab
  2. Navigate to Assets > Software
  3. Navigate back to the Network Equipment form
  4. 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

cconard96 avatar Jun 17 '25 00:06 cconard96

Since TinyMCE is now widely used; maybe should it be always loaded.

trasher avatar Jun 17 '25 05:06 trasher

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.

cconard96 avatar Jun 17 '25 21:06 cconard96