ApiC.getJson(`${entity.type}/${entity.id}/${Model.Upload}/${newId}`).then(json => {
          // use regExp in replace to find all occurrence
          // images are identified by 'src="app/download.php?f=' (html) and '![image](app/download.php?f=' (md)
          // '.', '?', '[' and '(' need to be escaped in js regex
          const editorNewContent = editorCurrentContent.replace(