mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 06:39:56 +09:00
에디터 모듈에 HTML 허용 설정 추가
회원 모듈에도 no html 서명을 위한 옵션 추가
This commit is contained in:
parent
f7915f8204
commit
da0ad3bd39
20 changed files with 179 additions and 142 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue