Skip to content

Commit

Permalink
release_note:fix issue #12053
Browse files Browse the repository at this point in the history
  • Loading branch information
hro-maker committed Mar 10, 2022
1 parent e378c0d commit 09f1d84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function EditorUI({ initialTextValue }: EditorProps) {

const loadBufferFromRemote = (url: string) => {
const coreEditor = editor.getCoreEditor();

if (/^https?:\/\//.test(url)) {
const loadFrom: Record<string, any> = {
url,
Expand All @@ -121,7 +121,7 @@ function EditorUI({ initialTextValue }: EditorProps) {

// Fire and forget.
$.ajax(loadFrom).done(async (data) => {
await editor.update(data, true);
await editor.update(`${initialTextValue }\n ${data}` , true);
editor.moveToNextRequestEdge(false);
coreEditor.clearSelection();
editor.highlightCurrentRequestsAndUpdateActionBar();
Expand Down

0 comments on commit 09f1d84

Please sign in to comment.