Custom Blocks with custom WYSIWYG-editor?

Permalink
Is there a way to make a block that is just like the standard content block (with the WYSIWYG-editor) but only has the possibility to use "approved" tags?

For example, to allow a user to edit his H1 I'd like a block where a user can only use an <a>-tag or such, and no <h1> or <p> tags.

 
12345j replied on at Permalink Reply
12345j
check out designer content in the mp.
clocktower replied on at Permalink Reply
clocktower
This may be more useful:

http://www.concrete5.org/community/forums/customizing_c5/tinymce-in...

----Specifically-----

Put this in your block add/edit:
<?php
$this->addHeaderItem(Loader::helper('html')->javascript('tiny_mce/tiny_mce.js'));

Loader::element('editor_init');
Loader::element('editor_config', array('editor_mode' => 'ADVANCED'));
?>

The 'editor_mode' parameter in a default C5 install can be ADVANCED, SIMPLE, OFFICE, or CUSTOM.

Then, with the textarea helper:

<?php echo $form->textarea('field_name', $field_name, array('class'=>'advancedEditor ccm-advanced-editor')) ?>

-------

I was looking to add the WYSIWYG editor to a custom block and was able to integrate what I needed from that post.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.