-
- 92 Posts
Hi,
I want only a few buttons in my TinyMCE. E.g.: Only Bold and Italic. How can I do this?
-
- 1,145 Posts
Which Extra are you using?
https://modx.com/extras/browse/?search=tinymce
If you are using my own, come we'll talk.
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 92 Posts
Your Extra look nice. I think I give it a try.
-
- 92 Posts
All right, your Extra looks much better. I only want this Buttons:
Bold, Italic, list and Headings.
Is it also possible that I can switch to SourceCode-View with source code highlights?
-
- 1,145 Posts
BTW anything you see on tinymce.com can be implemented by you with TWrapper
https://www.tinymce.com/docs/configure/editor-appearance/#toolbar
Open up one of the chunks created for you under
TinymceWrapper >> TinyMCE >> Backend
E.g TinymceWrapperContent (for your main content)
tinymce.init({
...
toolbar: 'bold italic | bullist numlist etc' //use styleselect for HEADINGS
//in version TWrapper 3.0 you will be able to do twButtons-h1 twButtons-h2 twButtons-h3
});
Syntax highlighting comes in by default, Ace (or CodeMirror)
Look in the TinymceWrapperCommonCode chunk to switch the one you like
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 1,145 Posts
Is that error a 404?
Please go to your folder /assets/components/tinymcewrapper/tinymceplugins/twCodeMirror.js
And see if the file exists
https://www.tinymce.com/docs/plugins/lists/
https://www.tinymce.com/docs/plugins/advlist/
For list to appear, make sure you have the plugins loaded
tinymce.init({
...
plugins: "lists, advlist ...",
toolbar: "numlist bullist ..."
});
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 92 Posts
I dont have a "tinymcewrapper" folder in assets/components/
The lists now work:
lists, advlist was not in the "plugin-list".