These are chat archives for GetmeUK/ContentTools

18th
Aug 2017
Tom Medema
@tommedema
Aug 18 2017 10:26
@anthonyjb I am looking into making a fork of contentedit to make it work without parent divs. Do you think this would be a possible undertaking? My reasoning is that I want to make arbitrary HTML editable without forcing a given document structure. Currently if I try to make unstructured html sites editable, I have to add parents, which causes the layout to mess up due to CSS rules no longer applying.

i.e.

<a data-editable>link</a>

instead of

<div data-editable><a>link</a></div>

Anthony Blackshaw
@anthonyjb
Aug 18 2017 11:39

@tommedema What you've got above could be achieved already using fixtures, for example:

<a
    data-ce-tag="p"
    data-fixture
    data-name="my-button"
    href="/test"
    class="button"
    >
    link
</a>

Or am I missing the point of what you're trying to achieve? If it has to work without the extra mark up then I suspect ContentEdit will be a poor choice because it relies on the block like structure heavily I'm afraid