These are chat archives for GetmeUK/ContentTools

12th
Apr 2017
Samuell
@Samuell1
Apr 12 2017 07:36
@anthonyjb and how to do if i want use divs in content? i think it have some issues with divs with classes :/
Simon Mannsfeld
@simonmannsfeld
Apr 12 2017 08:07
@Samuell1 I think flexbox is not the way to go. The grid should work with nested containers with css-classes. I think the classes should not be part of content editor. But i would prefer a grid system like bootstrap. Pro: You do not need additional media queries. Would you like work together or do you prefer a feature request? :)
Anthony Blackshaw
@anthonyjb
Apr 12 2017 09:17
@Samuell1 you'd need to replace the ContentTools.Tools.Video (https://github.com/GetmeUK/ContentTools/blob/master/src/scripts/tools.coffee#L1173), shouldn't be difficult you can just copy the same code but instead of setting up the tag name as an iframe you'd want to set it as a video with a list of sources (https://github.com/GetmeUK/ContentEdit/blob/master/src/scripts/videos.coffee)
JBtje
@JBtje
Apr 12 2017 13:38
@Someone "The properties of an element can be viewed and edited in the properties dialog. The dialog is launched when a tag in the inspector bar is clicked." Call me a fool, Idiot or noob, but i do not understand how to get the properties popup. Could someone elaborate?
oke... call me a noob... I just found it! Must say it was quite hidden :|}
Abishek R Srikaanth
@abishekrsrikaanth
Apr 12 2017 14:30
@anthonyjb any updates on support for allowing image updates on CT?
Samuell
@Samuell1
Apr 12 2017 14:31
@simonmannsfeld i dont have more time to do this you can do PR :)
@anthonyjb oh coffee script :fire: :D
Anthony Blackshaw
@anthonyjb
Apr 12 2017 14:45
@abishekrsrikaanth not at the moment though I'm working on a project currently where this is flagged as a nice to have feature so I'm hoping well see this and also background image fixtures added to CT
Abishek R Srikaanth
@abishekrsrikaanth
Apr 12 2017 14:51
@anthonyjb , thnx. In the meantime would you be able to point to me the code file that I can build my own custom approach for the time being till this is implemented. The app that I am working on just lacks this one feature and I currently update these images directly on the DB to make any updates
i can just soup up a simple modal with an file upload control to update the images for the time being till this is implemented as a feature
Anthony Blackshaw
@anthonyjb
Apr 12 2017 14:53
@abishekrsrikaanth I think the best place to start would be write your own ImageDialog (https://github.com/GetmeUK/ContentTools/blob/master/src/scripts/ui/dialogs/image.coffee). The updated version should accept the image element being modified as a constructor argument and then populate the dialog using it's details
Abishek R Srikaanth
@abishekrsrikaanth
Apr 12 2017 14:53
ok
Anthony Blackshaw
@anthonyjb
Apr 12 2017 14:55
the other thing to remember is if you use something like cloudinary its easy to allow the user to modify an image they have previously uploaded by simply removing any transforms from the URL and using them to configure the initial crop region and rotation in the viewer, however if you aren't then you would have to provide that information some other way or allow the user to only edit the already edited image - I'm hoping that make sense
Abishek R Srikaanth
@abishekrsrikaanth
Apr 12 2017 15:09
yes, makes sense. I am using cloudinary and btw, hats off to you on the amount of docs on the repo. Love it
Anthony Blackshaw
@anthonyjb
Apr 12 2017 15:09
Awesome :)
Simon Mannsfeld
@simonmannsfeld
Apr 12 2017 15:11
@Samuell1 Okay, thanks. I will do it on my own. PR incoming... =)