fix api and support individual shapes and text element

This commit is contained in:
Aakansha Doshi
2023-05-15 16:34:12 +05:30
parent acde193a64
commit 32aaa8b95d
5 changed files with 53 additions and 24 deletions
-1
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>")) {