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

Additional options not working, or not supported, by plugin. #26

Open
crispconcepts opened this issue Jan 23, 2016 · 0 comments
Open

Additional options not working, or not supported, by plugin. #26

crispconcepts opened this issue Jan 23, 2016 · 0 comments

Comments

@crispconcepts
Copy link

I was just looking to add a "center text" option, and I discovered some preexisting text alignment options that add an appropriate class ('center', 'left', 'right'), presumably to be styled in the front end.

When I add the options to the wysiwyg editor fields, they show up, and as expected when I select text and click on them it add's the class to the element if you're inspecting it. But when I save the page, the classes get thrown out and not saved.

c::set('field.wysiwyg.buttons',array(
  'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'bold', 'italic', 'underline',
  'strikethrough', 'subscript', 'superscript', 'anchor', 'quote', 'pre',
  'orderedlist', 'unorderedlist', 'justifyLeft', 'justifyCenter',  'justifyRight'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants