fix api and support individual shapes and text element

This commit is contained in:
Aakansha Doshi 2023-05-15 16:32:56 +05:30
parent acde193a64
commit 32aaa8b95d
5 changed files with 53 additions and 24 deletions

View file

@ -1546,7 +1546,6 @@ class App extends React.Component<AppProps, AppState> {
let file = event?.clipboardData?.files[0];
const data = await parseClipboard(event, isPlainPaste);
if (!file && data.text && !isPlainPaste) {
const string = data.text.trim();
if (string.startsWith("<svg") && string.endsWith("</svg>")) {