Skip to content

Instantly share code, notes, and snippets.

@christianseel
Created August 14, 2014 14:52
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save christianseel/780b16f202c873b3b278 to your computer and use it in GitHub Desktop.
Save christianseel/780b16f202c873b3b278 to your computer and use it in GitHub Desktop.
RTE for introtext #modx
<?php
// Add RTE for introtext if richtext option is enabled for the resource
// check "OnDocFormRender" event
$modx->regClientStartupHTMLBlock('<script>Ext.onReady(function() {
if(MODx.loadRTE) MODx.loadRTE("modx-resource-introtext");
});</script>');
@Mark-H
Copy link

Mark-H commented Sep 4, 2015

Redactor 2 introduces a setting for this (redactor.loadIntrotext). For it to work on non-standard resources though (@claytonk), this PR needs to be merged into the next release: modxcms/revolution#12632

@donShakespeare
Copy link

This is the default behaviour of TinymceWrapper ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment