InfotelGLPI / metademands

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

Add placeholder to tinyMCE #156

Open CartierPierre opened 1 month ago

CartierPierre commented 1 month ago

Hello, The comment is used as placeholder for richtext but not for Tiny MCE https://github.com/InfotelGLPI/metademands/blob/7d94ad8e438b9a46ab44b55766514000048cfe8a/inc/textarea.class.php#L108 I saw this option in the documentation https://www.tiny.cloud/blog/tinymce-placeholder-text/ But I don't understand where is TinyMCE init https://github.com/InfotelGLPI/metademands/blob/7d94ad8e438b9a46ab44b55766514000048cfe8a/inc/textarea.class.php#L396 This is commented.

Can you take a look ?

tsmr commented 1 month ago

in fact, we use tinymce functions from GLPI (Html::textarea) which not use placeholder, so i cannot use this feature on plugin :/

CartierPierre commented 1 month ago

No possibiilty to overload this ? Or load a Tinymce out of GLPI tinymce parameters ?