Ce composant de thème maintient également le comportement natif de la lightbox de Discourse, ce qui signifie que cliquer sur l’une des images les ouvrira dans le visualiseur lightbox natif.
Vous pouvez ensuite définir « mon thème » dans l’exemple ci-dessus comme thème par défaut ou le rendre sélectionnable par l’utilisateur, et il inclura à la fois Slick et Tiles.
Un grand merci à tous ceux qui ont aidé en cours de route :
@dax - Bouton de l’éditeur @cpradio - Traductions du bouton @Mittineague - Gestionnaire ajaxComplete @simon - Gestionnaire api.onPageChange @vinothkannans - Expression régulière pour l’URL de la page de sujet @sam - ajout de data-theme-* aux attributs autorisés
That’s a very good point @kaefert thank you for bringing it up
I will edit both the Slick and Tiles topics and clarify what I meant.
In the meantime, to answer your question:
Tile and Slick act independently. What I meant to say here:
is that there is no conflict between Tiles and Slick. If you want to use both Tiles and Slick at the same time, you can! You just have to install both of them, separately.
If you install both of the same time, you get something like this in the composer:
And if you use both of them in a topic/post you end up with something like this:
The problem I have about activating both at the same time is that I only can set one as default in the admin settings, and can only select one of them in the user settings.
Can you share a little bit more details? The reason why I’m asking is because that looks like a onebox. This theme component only applies styles to images within very specific structure like so
.tiles-initialized {
// all styles are applied here
}
So it should not have any effect on oneboxes at all.
Does the issue still occur if you disable the the theme temporarily?
1- The Facebook onebox plugin is not supported anymore, you don’t need it.
2- No, there should not be any conflict between the two. Tiles only targets specific images but you have to use the button in the composer to make it work
If you’re not sure, check the OP again and let me know if you need more help.
My guess is that subsequent commits to Discourse addressed the issue.
Are you still facing the same problem?
Even better news is that I tinkered a little bit with both Slick and Tiles and they now have much more targeted firing methods that will only fire when needed. Credit here goes to @vinothkannans for the awesome tip.
So if you’re using either Slick or Tiles or both, please update now and let me know if the problem is still there, or if there are any other issues that need to be addressed.