Add support for choosing HTML editor mode in module config

This commit is contained in:
iliajie
2023-06-16 19:22:24 +03:00
parent 61197c485f
commit a2204e46e0
4 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@ no_crlf=0
sync_perms=0700
show_mail=0
html_edit=2
html_edit_mode=advanced
check_mod=1
spam_buttons=mail
show_delall=0

View File

@ -12,6 +12,7 @@ delete_warn=Ask for confirmation before deleting?,10,y-Yes,n-No,For mbox files l
view_html=Show message body as,4,0-Always plain text,1-Text if possible, HTML otherwise,2-HTML if possible, text otherwise,3-Convert HTML to plain text
view_images=Show inline images by default?,1,0-Yes, client fetched,3-Yes, server fetched,1-No external images,2-No
html_edit=Use HTML editor for composing?,4,2-Always,1-When replying to HTML email,0-Never
html_edit_mode=HTML editor toolbar mode?,4,basic-Basic,simple-Simple,advanced-Advanced,expert-Expert
html_quote=HTML quoting mode,1,1-Message below <hr>,0-Message inside <blockquote>
log_read=Record the reading of mail in the Webmin Actions Log?,1,1-Yes,0-No
bcc_to=Bcc: sent messages to,0

View File

@ -1 +1 @@
allowed=wrap_width,wrap_compose,perpage,show_to,top_buttons,arrows,show_delall,show_sent,fwd_mode,delete_warn,delete_warn_free,view_html,html_edit,html_quote,log_read,show_body,open_mode,link_mode,date_fmt,date_tz_def,date_tz
allowed=wrap_width,wrap_compose,perpage,show_to,top_buttons,arrows,show_delall,show_sent,fwd_mode,delete_warn,delete_warn_free,view_html,html_edit,html_edit_mode,html_quote,log_read,show_body,open_mode,link_mode,date_fmt,date_tz_def,date_tz

View File

@ -450,7 +450,7 @@ $quote = &iframe_quote($quote);
# Get HTML editor and replies
my $html_editor = &html_editor(
{ textarea => 'body',
type => 'advanced',
type => $config{'html_edit_mode'} || 'advanced',
quote => length($quote),
after =>
{ editor => $quote }