에디터 모듈에 HTML 허용 설정 추가

회원 모듈에도 no html 서명을 위한 옵션 추가
This commit is contained in:
conory 2017-07-13 00:46:28 +09:00
parent f7915f8204
commit da0ad3bd39
20 changed files with 179 additions and 142 deletions

View file

@ -1,8 +1,3 @@
.rx_editor_wrapper {
clear: both;
}
.rx_editor_wrapper .rx_editor_textarea {
width: 100%;
min-height: 64px;
@ -16,4 +11,5 @@
.rx_editor_wrapper .rx_editor_textarea.dark {
border-color: #111;
background: #333;
color: #fff;
}

View file

@ -27,6 +27,11 @@
}
// Save edited content
<!--@if(!$allow_html)-->
textarea.on("change", function() {
content_input.val(String($(this).val()).escape());
});
<!--@else-->
textarea.on("change", function() {
content_input.val("<p>" + String($(this).val()).escape().replace(/\r?\n/g, "</p>\n<p>") + "</p>");
});
@ -45,7 +50,7 @@
} else {
parentform.append('<input type="hidden" name="use_html" value="Y" />');
}
<!--@end-->
});
</script>
</div>