Skip to content

Instantly share code, notes, and snippets.

@mandrasch
Created October 17, 2011 13:11
Show Gist options
  • Save mandrasch/1292573 to your computer and use it in GitHub Desktop.
Save mandrasch/1292573 to your computer and use it in GitHub Desktop.
Loading WYSIWYG Editor in custom block (Concrete5)
<h2>Description 1</h2>
<?php
Loader::element('editor_init');
Loader::element('editor_config');
Loader::element('editor_controls');
?>
<div class="ccm-block-field-group" id="ccm-editor-pane">
<textarea id="description" class="ccm-advanced-editor advancedEditor" name="description" rows="5" style="width: 95%;"><?php echo $description; ?></textarea>
</div>
<!-- Only one WYSIWYG Editor possible at this time because of concrete5 bug -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment