TinyMCE Styles

Permalink Browser Info Environment
Hi

I like content+ very much. In my eyes it should replace the original content block completely as it does everything the original block does, but better.

But I do miss the style_formats of the tinyMCE. We use it in the original block and I don't even see where I could add them in the content+ block.

Type: Discussion
Status: New
Kiesel
View Replies: View Best Answer
glockops replied on at Permalink Reply
glockops
Content+ loads the core 'editor_init', 'editor_config', 'editor_controls' so you can add your styles_format to the "Rich Text Editor" dashboard page. (Systems & Settings -> Basics -> Rich Text Editor)

Select "custom" and enter your tinyMCE styles. More information about Tiny MCE style_format can be found here:http://www.tinymce.com/wiki.php/Configuration:style_formats...

After you make your changes to the Rich Text Editor, you may need to clear your cache to see your changes in Content+.

Thanks for the kind words about Content+ - I'm glad you find it useful.
Kiesel replied on at Permalink Reply
Kiesel
Hi glockops

Thank you for the info! I just try to find out how I could implement it directly in the code. For the content block I was able to insert this data directly in the blocks/content/editor_config.php

Is there a way like this for the content+?
glockops replied on at Permalink Best Answer Reply
glockops
You can override the core editor_init, editor_config, and editor_controls files. They are located in /concrete/elements - copy them to /elements folder and make your changes.

This block and other blocks that use those files will load your overrides instead of the core files.

Here's more information about overrides:http://www.concrete5.org/documentation/how-tos/developers/change-th...
Kiesel replied on at Permalink Reply
Kiesel
Looks like all blocks using TinyMCE take their data from /concrete/elements/editor_config.

But not the normal content block. That one is using /concrete/blocks/content/editor_config

So I have to theme both and set the styles in both, but we don't change them often, so that's a good solution.

Thank you for the help!
daenu replied on at Permalink Reply
daenu
Hi all
in my case I had two override both 'editor_config.php'-files, as JasonStone said.
My goal was to change font size drop-down like:
...
theme_advanced_font_sizes : "0.5em,0.55em,0.6em,0.65em,...,2em",
...

Used c5 version is 5.6.2.1
So:
/blocks/content/editor_config.php
overrides
/concrete/blocks/content/editor_config.php
and
/elements/editor_config.php
overrides
/concrete/elements/editor_config.php

Don't forget to
- empty cache
- refresh Content-block in Blocktypes

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.