modx-ace icon indicating copy to clipboard operation
modx-ace copied to clipboard

Ace inits when not used

Open theboxer opened this issue 9 years ago • 5 comments

Ace inits in resource panel even if not set as RTE...

theboxer avatar Mar 08 '15 13:03 theboxer

Is this bad? Ace inits when RTE is disabled. Ace can't be set as RTE. This allows to use RTE for specific resources and Ace for others (say no to lame textareas).

danyaPostfactum avatar Mar 08 '15 14:03 danyaPostfactum

Then I would add an option to load Ace for resource, but loading that automatically doesn't seem right to me

theboxer avatar Mar 08 '15 15:03 theboxer

Why not? Ace is just a textarea replacement. You can try to uncheck OnDocFormPrerender event on plugin settings page.

danyaPostfactum avatar Mar 08 '15 15:03 danyaPostfactum

I still don't get why you force user to use it on all textareas

theboxer avatar Mar 08 '15 15:03 theboxer

As I said, this way allows to use both Ace and RTE for different resources. As for an setting for this, I don't like to add extra settings. I just don't see why syntax highlighting is worse than plain textarea.

danyaPostfactum avatar Mar 08 '15 15:03 danyaPostfactum