Is the Ace component currently ignoring the "which_editor" User setting?
It seems that if a Resource has "Rich Text" enabled, Ace no longer activates when editing Resources. For my administrator user, I have a custom user setting for "which_editor" set to "Ace". The only way Ace works on Resources now is if "Rich Text" is turned off. However, for the other Admins that prefer TinyMCE, this breaks that for them.
I was able to add a check for this in the "Ace" plugin "OnDocFormPrerender" case:
BEFORE:
if ( $richText || in_array($classKey, array('modStaticResource','modSymLink','modWebLink','modXMLRPCResource'))) {
return;
}
AFTER:
if ( ($richText && $modx->getOption('which_editor') != 'Ace' ) || in_array($classKey, array('modStaticResource','modSymLink','modWebLink','modXMLRPCResource'))) {
return;
}
I have not thoroughly tested this, but can confirm that Ace is working again for Rich Text resources for users which implicitly set "which_editor" to use "Ace" other than just for editing Elements. (e.g. which_element_editor)
NOTE: This is using Ace 1.3.3-pl on MODX 2.2.7-dev
[ed. note: pixelchutes last edited this post 10 years, 1 month ago.]