Issues with TinyMCE styles
-
I am trying to add custom formats to tinymce’s style select in wysiwyg fields, but my settings only crash the editor.
'tinymce' => array( 'style_formats' => array( array( 'title' => 'Test', 'inline' => 'p', 'classes' => 'test1' ), array( 'title' => 'Test2', 'inline' => 'p', 'classes' => 'test2' ), ), 'toolbar1' => "styleselect,bold,italic,underline,strikethrough,forecolor,bullist | alignleft aligncenter alignright alignjustify", ),Doing this crashes tinymce, javascript giving an undefined variable error. I was wondering what was the proper way to do this, or if I’m missing something that I need to do. I’m trying to offer users different preset styles to play with.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Issues with TinyMCE styles’ is closed to new replies.