mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Excalicharts MVP (#1723)
Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
d1be2a5481
commit
f7c4efbd35
4 changed files with 288 additions and 2 deletions
|
@ -707,8 +707,15 @@ class App extends React.Component<any, AppState> {
|
|||
) {
|
||||
return;
|
||||
}
|
||||
const data = await getClipboardContent(event);
|
||||
if (data.elements) {
|
||||
const data = await getClipboardContent(
|
||||
this.state,
|
||||
cursorX,
|
||||
cursorY,
|
||||
event,
|
||||
);
|
||||
if (data.error) {
|
||||
alert(data.error);
|
||||
} else if (data.elements) {
|
||||
this.addElementsFromPaste(data.elements);
|
||||
} else if (data.text) {
|
||||
this.addTextFromPaste(data.text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue