support plaintext on editpost, editorinit called before all buttons laid out

This commit is contained in:
friendica 2012-02-17 11:49:27 -08:00
parent 184f6165fc
commit 75acc1ed96
7 changed files with 11 additions and 8 deletions

View file

@ -28,6 +28,10 @@ function editpost_content(&$a) {
return;
}
$plaintext = false;
if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
$plaintext = true;
$o .= '<h2>' . t('Edit post') . '</h2>';