diff --git a/media/css/seahub.css b/media/css/seahub.css
index 83548fedf6..506569f054 100644
--- a/media/css/seahub.css
+++ b/media/css/seahub.css
@@ -3659,6 +3659,11 @@ img.thumbnail {
.web-setting-input .input {
margin:0;
}
+.web-setting-input .textarea {
+ box-sizing:content-box;
+ height:95px;
+ margin:0;
+}
.web-setting-ops {
width:100px;
vertical-align:top;
diff --git a/seahub/settings.py b/seahub/settings.py
index f108fb3d50..d55ad60d54 100644
--- a/seahub/settings.py
+++ b/seahub/settings.py
@@ -326,10 +326,7 @@ FILE_ENCODING_LIST = ['auto', 'utf-8', 'gbk', 'ISO-8859-1', 'ISO-8859-5']
FILE_ENCODING_TRY_LIST = ['utf-8', 'gbk']
HIGHLIGHT_KEYWORD = False # If True, highlight the keywords in the file when the visit is via clicking a link in 'search result' page.
# extensions of previewed files
-TEXT_PREVIEW_EXT = """ac, am, bat, c, cc, cmake, cpp, cs, css, diff, el, h, html,
-htm, java, js, json, less, make, org, php, pl, properties, py, rb,
-scala, script, sh, sql, txt, text, tex, vi, vim, xhtml, xml, log, csv,
-groovy, rst, patch, go"""
+TEXT_PREVIEW_EXT = """ac, am, bat, c, cc, cmake, cpp, cs, css, diff, el, h, html, htm, java, js, json, less, make, org, php, pl, properties, py, rb, scala, script, sh, sql, txt, text, tex, vi, vim, xhtml, xml, log, csv, groovy, rst, patch, go"""
# Common settings(file extension, storage) for avatar and group avatar.
AVATAR_FILE_STORAGE = '' # Replace with 'seahub.base.database_storage.DatabaseStorage' if save avatar files to database
diff --git a/seahub/templates/snippets/web_settings_form.html b/seahub/templates/snippets/web_settings_form.html
index 22dda8d6c5..d3f031abcd 100644
--- a/seahub/templates/snippets/web_settings_form.html
+++ b/seahub/templates/snippets/web_settings_form.html
@@ -15,6 +15,21 @@
{% endif %}
+{% if type == 'textarea' %}
+
+{% endif %}
+
{% if type == 'checkbox' %}