V
V
Vladimir2019-05-17 14:47:23
MODX
Vladimir, 2019-05-17 14:47:23

How to enable HTML editor for MODX textbox when creating resource?

Good afternoon. How can a resource set a text editor as active by default?
Version MODX Revolution 2.6.5-pl

5cde9d1877c49817113636.png

The problem itself is that I need to create a text field with a test editor for the product template, but it does not connect if 5cde9e069e140973586154.png
I turn on the editor in the settings, then everything is connected
5cde9e99976b3513911086.png
. But I need it to start automatically.
$modx->regClientStartupHTMLBlock('<script>Ext.onReady(function() {
if(MODx.loadRTE) MODx.loadRTE("modx-resource-description");});</script>');

Perhaps it can be done somehow easier, I will be very grateful for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2019-05-17
@an-tar

If the resource has a "Use HTML editor" checkbox and the value of the which_editor system variable is non-empty and an editor is selected here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question