These are chat archives for GetmeUK/ContentTools

28th
Mar 2016
Anthony Blackshaw
@anthonyjb
Mar 28 2016 03:06
Quick announcement I've pushed a new release 1.2.1 - fixes a few bugs from the previous release and adds bower support (as well as some other minor additional features) - write up is here https://github.com/GetmeUK/ContentTools/releases/tag/1.2.1
Eeliya Rasta
@Eeliya
Mar 28 2016 10:30
Hi, I want to hide (display: none) elements with a specific class and show them only when I am in edit mode
This should apply to all the elements
What would be your suggestion to implement this?
Anthony Blackshaw
@anthonyjb
Mar 28 2016 11:49
Hi @Eeliya, are the elements you want to hide/show editable elements? If so you could but in a ':not(.ce-element)' condition on your class that hides elements as the ce-element class is applied to all editable elements while they are being edited?
Eeliya Rasta
@Eeliya
Mar 28 2016 11:53
Yes they are editable, and yes your solution will work. Thanks
My content contains of some data that should be shown to the user and I used same approach like what you suggested to hide them in the front-end
but they were still accessible via developer tools
so I had to implement a feature in the server side(PHP) that strip those tags and only send the parsed data to the frontend
Anthony Blackshaw
@anthonyjb
Mar 28 2016 12:14
cool :D
Bizley
@bizley
Mar 28 2016 13:52
Guys, just to let you know - https://github.com/bizley/yii2-content-tools - Yii 2 implementation of ContentTools editor is now properly released thanks to Bower support (cheers @anthonyjb )
Anthony Blackshaw
@anthonyjb
Mar 28 2016 15:06
@bizley thanks for this :)