* update ``.raw-content`` when edit issue/comment content
fix #16000
Signed-off-by: a1012112796 <1012112796@qq.com>
* handle empty content
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
}, (data) => {
if (data.length === 0 || data.content.length === 0) {
$renderContent.html($('#no-content').html());
+ $rawContent.text('');
} else {
$renderContent.html(data.content);
+ $rawContent.text($textarea.val());
}
const $content = $segment;
if (!$content.find('.dropzone-attachments').length) {