You have to replace
<?php if ($content['type'] == "document" || $_REQUEST['a'] == 4) { ?>
by
<?php if(($content['type']=="document" || $_REQUEST['a']==4) && $content['nocontent'] != true ) { ?>
It just means it adds a check to see if the document as an empty content field or not, which is the whole point of HideEditor, not showing the content field upon editing when it’s empty.
But it doesn’t work anymore in the latest 0.9.5 betas, probably changes to the core code require an upgrade for this plugin...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
piwaille, that’s not the reason... the plugin has the necessary code to check the ’nocontent’
<?php
if(strpos($template, '[*content*]') === false) {
/* Template doesn't use [*content*] */
$content['nocontent'] = true;
return;
}
?>
It’s somewhere else in the mutate_content.dynamic.php I guess....
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Thanks A LOT Timon for the upgrade, works like a charm

(to those who upgrade, don’t forget to modify the event listener to OnDocFormRender instead of OnDocFormPreRender)
I have gotten used to HideEditor so much I was at loss without it...
This should be added to the
resources page !
I see you know have both [*content*] and [*#content*] covered, nice too !
Kudos !!!
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
No, just with 0.9.5 beta rev1687.
I’ll try it with a 0.9.2.1 install when I get the chance, and report...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
IE problem confirmed in 095RC1! It does not hide the content area in IE 6.0 XPSP2.
regards.
zi