TinyMCE customizations

32 views
Skip to first unread message

Mark Pitely

unread,
Feb 16, 2022, 2:27:14 PM2/16/22
to dot...@googlegroups.com
Is anyone (version 21....) using the WYSIWYG modification option?

If so, would you be willing to share your wysiwyg-minimal.vtl settings?
Just seeing someone elses might help understand how it all comes together.
We are particularly interested in being able to add CSS classes via import_css and import_css_append.


Thanks!


Mark Pitely
Marywood University

Tom Kisha

unread,
Apr 26, 2022, 10:08:25 PM4/26/22
to dotCMS User Group
At minimum you would need something like this in your VTL file:

{
  "selector": "textarea",
  "plugins": [
    "advlist anchor autolink lists link charmap print preview hr anchor pagebreak searchreplace wordcount directionality",
    "visualblocks visualchars code fullscreen insertdatetime nonbreaking save table contextmenu textpattern",
    "emoticons paste textcolor colorpicker textpattern validation compat3x spellchecker media"
  ],
  "content_css": [
    "/path/to/css/file.css"
  ],
  "body_class": "wysiwyg"
}

Cheers!

Tom Kisha
Reply all
Reply to author
Forward
0 new messages