storypioneers / kirby-wysiwyg

WYSIWYG panel field for Kirby CMS
Other
125 stars 16 forks source link

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

Open crispconcepts opened 8 years ago

crispconcepts commented 8 years ago

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'));