* remove alert after prompt execution, and fix placeholder keeps showing even with content injected, bug #36913.
This commit is contained in:
@@ -456,7 +456,7 @@ class ai extends control
|
||||
|
||||
if($prompt->status == 'draft') $_SESSION['auditPrompt']['time'] = time();
|
||||
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->ai->execute->success, 'locate' => $location));
|
||||
return $this->send(array('result' => 'success', 'locate' => $location));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -53,6 +53,12 @@
|
||||
});
|
||||
if(editorInstance)
|
||||
{
|
||||
if(data === null) data = '';
|
||||
|
||||
/* Remove placeholder. */
|
||||
if(data !== '') editorInstance.$placeholder.each(function(_idx, ph) {ph.style.display = 'none';});
|
||||
|
||||
/* Set editor content and sync with textarea. */
|
||||
editorInstance.html(data);
|
||||
editorInstance.sync();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user