Skip to content

Instantly share code, notes, and snippets.

@andronex
Forked from christianseel/introRTE
Created October 1, 2016 21:54
Show Gist options
  • Save andronex/1a01bf131b755c433547d0166cc74f5d to your computer and use it in GitHub Desktop.
Save andronex/1a01bf131b755c433547d0166cc74f5d 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>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment