에디터 모듈에 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

@ -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>