solved Adding text choices to the editor?

alt=
K_K
@k-k
7 years ago
95 posts
Currently in the editor for forum and blog posts I have "paragraph", "heading 1", "heading 2", etc and "preformatted" for different text options (see attached picture).

Is it possible to add more choices to this? Or are they automatically taken from css files?

I would like to have a different font and size for picture caption texts and this would seem to be an easy way to add it.
1.PNG.png
1.PNG.png  •  16KB


updated by @k-k: 05/19/17 09:15:41AM
brian
@brian
7 years ago
10,148 posts
You know I am not sure that the editor allows us to customize those options, but we will check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
You can edit the menu in form_editor.tpl

From memory, you can only use html elements in block_formats:
block_formats: 'Paragraph=p;Header 1=h1;Header 2=h2;Header 3=h3;Section=section',

You can do more with the formats menu and style_formats (also in form_editor.tpl) but might need to write some css as well in order to get what you want.

You can get more idea as to how to achieve that here:
https://www.tinymce.com/docs/configure/content-formatting/


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/14/17 01:52:07PM
alt=
K_K
@k-k
7 years ago
95 posts
Thanks for info, I check it out :)
alt=
K_K
@k-k
7 years ago
95 posts
Sorry, where the form_editor.tpl is? Could not find it in ACP nor looking via SFTP.
douglas
@douglas
7 years ago
2,790 posts
K_K:
Sorry, where the form_editor.tpl is? Could not find it in ACP nor looking via SFTP.

It is in your modules/jrCore/templates folder, or your sites ACP > Core > System Core > Templates section.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
michael
@michael
7 years ago
7,715 posts
Further to what Douglas said, there is also one in Site Builder to control the editor there if you want to change that one too at:
ACP -> MODULES -> SITE -> SITE BUILDER -> TEMPLATES -> form_editor.tpl -> MODIFY

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor

--edit--
If you want to alter it in the file system, here is the method to over-ride it for your skin.

Docs: "Altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template

The files can be found at:
/modules/jrCore/templates/form_editor.tpl
/modules/jrSiteBuilder/templates/form_editor.tpl
updated by @michael: 02/15/17 12:18:10PM
alt=
K_K
@k-k
7 years ago
95 posts
Thanks for all the infos, seems like the style_formats is a good way to do this. And maybe add some other things also :).