Skip to content

Instantly share code, notes, and snippets.

@sebastian-marinescu
Forked from christianseel/introRTE
Created June 30, 2016 16:21
Show Gist options
  • Save sebastian-marinescu/a440ae9eb9a01d7e85b075450ba55b57 to your computer and use it in GitHub Desktop.
Save sebastian-marinescu/a440ae9eb9a01d7e85b075450ba55b57 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