GetmeUK/ContentTools

Can't add classes

ScotsScripts opened this issue · 1 comments

I see in the demo/docs page you have: "Only styles predefined for an element can be applied."

Let's say the editable page is in a Bootstrap 4 CSS framework. How do I add any BS4 class I want to any editable element without having to redefine every bootstrap 4 CSS class in contenttools settings?

From looking over things it kind of looks like contenttools ignores existing CSS unless it's defined in the settings, but that seems pretty rigid and I'm thinking there is more flexibility to this that I'm not seeing.

Well you can add any class or style you want via the property editor but CT doesn't attempt to pass your CSS and determine what is safe for a user to add or not to what elements. Our experience is that quality content is easier to create when ("typical") users have a small number of preset classes with which to style the content inline with a design.

CT aims to allow users to style the content within a site not the site structure itself, event ContentFlow uses preset content blocks with configurable layouts but still fixed options - it's not intended to be a dreamweaver (or the equivalent these days).