Adding code-formatting to TinyMCE

Post Reply
bnetz
Ssr. Bludit
Posts: 18
Joined: Sun Aug 16, 2020 6:38 pm

Hi,
I am running Bludit 3.13.1 with TinyMCE 5.4.1.
I want mark text and click a button or choose a formatting so the text is surrounded by

Code: Select all

<code>code-tags</code>
The codesample-option (like mentioned in this thread) is not an option, because I have to do it often and I just want to change the formatting of existing text to code.
I would appreciate help very much!
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can use the plugin Code Sample for TinyMCE.

Go to the settings of TinyMCE and add codesample to the field "Toolbar top" or "Toolbar bottom" and to the field "Plugins".
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply