These are chat archives for GetmeUK/ContentTools

22nd
May 2016
David King
@oodavid
May 22 2016 13:01
Is it possible to add new regions to ContentTools.EditorApp ? Using new ContentEdit.Region(element); makes the area editable, but it's not linked to ContentTools
Anthony Blackshaw
@anthonyjb
May 22 2016 14:36
Hi @oodavid - you can't easily add a new region as you describe (though it would be possible with some hacking) however with the latest version of CT you can use the syncRegions() method against the editor instance to sync the regions editor with any new or removed regions on the page (e.g if you add your region to the DOM then call syncRegions), you can also send syncRegions a list of DOM elements to use to sync with if your not using a select query to mark regions. This method is however new in the latest release and still some what experimental and undocumented (sorry in advance for any problems).
David King
@oodavid
May 22 2016 16:32
@anthonyjb - that's really useful thanks. I've just started with ContentTools so am testing the water really. Are you a dev?
David King
@oodavid
May 22 2016 16:38
Scratch that, I've just had a good butchers - thanks for the cracking work!
Anthony Blackshaw
@anthonyjb
May 22 2016 17:45
Thanks :)
David King
@oodavid
May 22 2016 20:08
Screen Shot 2016-05-22 at 21.07.57.png
Not sure if you can see, but I've got a rogue Å in the image size, I'm guessing I've muddled the charset?
I really should wait before typing - I missed the <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">