mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
Fix: Abnormal strings appear when comments are saved after editing (#29991)
Partially resolved(The second problem): [#29986](https://github.com/go-gitea/gitea/issues/29986) **Before** HTML strings appear when comments are saved after editing  **After** https://github.com/go-gitea/gitea/assets/37935145/525601f9-3ee1-4266-9105-36d82b91b1c8
This commit is contained in:
parent
226231ea27
commit
bf34723491
@ -436,7 +436,7 @@ async function onEditContent(event) {
|
|||||||
const $content = $segment;
|
const $content = $segment;
|
||||||
if (!$content.find('.dropzone-attachments').length) {
|
if (!$content.find('.dropzone-attachments').length) {
|
||||||
if (data.attachments !== '') {
|
if (data.attachments !== '') {
|
||||||
$content[0].append(data.attachments);
|
$content[0].insertAdjacentHTML('beforeend', data.attachments);
|
||||||
}
|
}
|
||||||
} else if (data.attachments === '') {
|
} else if (data.attachments === '') {
|
||||||
$content.find('.dropzone-attachments').remove();
|
$content.find('.dropzone-attachments').remove();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user