You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
451 B
31 lines
451 B
# Override
|
|
|
|
## How to Use
|
|
|
|
```javascript
|
|
import Editor from "@hufe921/canvas-editor"
|
|
|
|
const instance = new Editor(container, <IElement[]>data, options)
|
|
instance.override.overrideFunction = ()=>{}
|
|
```
|
|
|
|
## paste
|
|
|
|
Feature: Override internal paste function
|
|
|
|
Usage:
|
|
|
|
```javascript
|
|
instance.override.paste = (evt?: ClipboardEvent) => void
|
|
```
|
|
|
|
## copy
|
|
|
|
Feature: Override internal copy function
|
|
|
|
Usage:
|
|
|
|
```javascript
|
|
instance.override.copy = () => void
|
|
```
|