Este componente de tema también mantiene el comportamiento predeterminado del visor de luz (lightbox) de Discourse, lo que significa que al hacer clic en cualquiera de las imágenes se abrirán en el visor de luz nativo.
Luego puedes establecer “mi tema” del ejemplo anterior como el tema predeterminado o hacerlo seleccionable por el usuario, e incluiría tanto Slick como Tiles.
¡Un gran agradecimiento a todos los que ayudaron en el camino:
@dax - Botón del editor @cpradio - Traducciones del botón @Mittineague - Manejador ajaxComplete @simon - Manejador api.onPageChange @vinothkannans - Expresión regular de la URL de la página del tema @sam - agregar data-theme-* a los atributos permitidos
Se aceptan informes de errores, sugerencias y PRs.
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.