InfotelGLPI / positions

Plugin positions for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
17 stars 11 forks source link

Positions/Cartography plugin CSS interferes with html formatting in KnowledgeBase #52

Open derry43 opened 4 years ago

derry43 commented 4 years ago

Version of the plugin : 4.6.0 Version of your GLPI : 9.4.5

Steps to reproduce: With positions/Cartography plugin installed and enabled, create a knowledge base item with formatted text e.g. bold or italic. This shows fine in Edit (third tab) window, but the formatting disappears in the view (first tab). Disabling the positions/Cartography plugin fixes this. I have traced cause to inclusion of plugins/positions/lib/extjs/resources/css/ext-all.css CSS in plugins/positions/setup.php. The same CSS is included by the fusioninventory pluging, however there is a test applied to it's inclusion and unlike the code in positions plugin it does not interfere with the text formatting.

if (script_endswith("deploypackage.form.php")) {
         $PLUGIN_HOOKS['add_css']['fusioninventory'][]="lib/extjs/resources/css/ext-all.css";

perhaps this is something that can be done in positions plugin.

Expected result: html formatting should display in knowledge base items even in view mode.

Actual result: The positions/Cartography plugin code interferes with the display of the formatted text.

stonebuzz commented 3 months ago

idem with <ul><li> in all richtext zones

image