Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add classes #559

Open
ScotsScripts opened this issue Feb 11, 2020 · 1 comment
Open

Can't add classes #559

ScotsScripts opened this issue Feb 11, 2020 · 1 comment
Labels

Comments

@ScotsScripts
Copy link

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.

@anthonyjb
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants