Skip to content

Commit

Permalink
Update default toolbar for TinyMCE 6 (change styleselect to styles)
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Aug 9, 2024
1 parent 88b5c16 commit f65388b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/initializers/trestle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
:table,
:code
]
c.plugins << :hr << :paste if Trestle::TinyMCE.tinymce_major_version == 5
c.toolbar = "styleselect | bold italic underline strikethrough | subscript superscript hr | alignleft aligncenter alignright alignjustify | bullist numlist | indent outdent | undo redo | link unlink | image charmap table | code"
if Trestle::TinyMCE.tinymce_major_version == 6
c.toolbar = "styles | bold italic underline strikethrough | subscript superscript hr | alignleft aligncenter alignright alignjustify | bullist numlist | indent outdent | undo redo | link unlink | image charmap table | code"
else
c.toolbar = "styleselect | bold italic underline strikethrough | subscript superscript hr | alignleft aligncenter alignright alignjustify | bullist numlist | indent outdent | undo redo | link unlink | image charmap table | code"
c.plugins << :hr << :paste
end
c.link_context_toolbar = true
c.convert_urls = false
end
Expand Down

0 comments on commit f65388b

Please sign in to comment.