mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
textarea 에디터에서 컨버터 사용으로 이제는 더 이상 필요 없게 되버린 부분 제거
This commit is contained in:
parent
66e276c969
commit
4ed0ce5568
1 changed files with 0 additions and 21 deletions
|
|
@ -27,30 +27,9 @@
|
|||
}
|
||||
|
||||
// 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>");
|
||||
});
|
||||
|
||||
// Add use_editor and use_html fields to parent form.
|
||||
var parentform = $('#textarea_instance_{$editor_sequence}').parents('form');
|
||||
var use_editor = parentform.find("input[name='use_editor']");
|
||||
var use_html = parentform.find("input[name='use_html']");
|
||||
if (use_editor.size()) {
|
||||
use_editor.val("Y");
|
||||
} else {
|
||||
parentform.append('<input type="hidden" name="use_editor" value="Y" />');
|
||||
}
|
||||
if (use_html.size()) {
|
||||
use_html.val("Y");
|
||||
} 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