only allow richtext editor on pages if bbcode is the default mimetype, otherwise use plaintext editor. This will eventually need work to support a visual editor for html or other types.
This commit is contained in:
parent
f44274bfca
commit
5f2a7573d5
@ -1013,17 +1013,17 @@ function status_editor($a,$x,$popup=false) {
|
|||||||
if(feature_enabled(local_user(),'richtext'))
|
if(feature_enabled(local_user(),'richtext'))
|
||||||
$plaintext = false;
|
$plaintext = false;
|
||||||
|
|
||||||
if(intval($x['plaintext']))
|
|
||||||
$plaintext = true;
|
|
||||||
|
|
||||||
$mimeselct = '';
|
$mimeselct = '';
|
||||||
if(array_key_exists('mimetype',$x) && $x['mimetype']) {
|
if(array_key_exists('mimetype',$x) && $x['mimetype']) {
|
||||||
if($x['mimetype'] === 'choose')
|
if($x['mimetype'] != 'text/bbcode')
|
||||||
|
$plaintext = true;
|
||||||
|
if($x['mimetype'] === 'choose') {
|
||||||
$mimeselect = mimetype_select($x['profile_uid']);
|
$mimeselect = mimetype_select($x['profile_uid']);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
$mimeselect = '<input name="mimetype" value="' . $x['mimetype'] . '" />';
|
$mimeselect = '<input name="mimetype" value="' . $x['mimetype'] . '" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template('jot-header.tpl');
|
$tpl = get_markup_template('jot-header.tpl');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user