Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<div id="trumbowyg-icons"> is remaining without style #1456

Open
Gilbertdelyon opened this issue May 4, 2024 · 0 comments
Open

<div id="trumbowyg-icons"> is remaining without style #1456

Gilbertdelyon opened this issue May 4, 2024 · 0 comments

Comments

@Gilbertdelyon
Copy link

Gilbertdelyon commented May 4, 2024

I am using Trumbowyg in HumHub, (based on Yii). It works !

Small issue:
In some cases, when I leave the form page where Trombowyg is used, the <div id="trumbowyg-icons"> is remaining in the DOM but without Trumbowyg css (HH is massively using JS and REST).
The result is that this <div id="trumbowyg-icons"> is not styled and the height is "155px" instead of "0",

This is what I did in my js file: (Sorry, comments in french)

//Activation script richtext pour le corps de texte du mail
$('#mail-body').trumbowyg({
         lang: 'fr',
 });
 //<div id="trumbowyg-icons"> reste affichée quand on revient à la page précédente, mais sans le css qui la cache. Résultat = une marge importante en haut de page. Marge qui disparait avec un style en attribut) 
 $('#trumbowyg-icons').css('height', '0px');

Now it works.
So, I would suggest this <div id="trumbowyg-icons"> to be styled by attribute instead of css file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant