Skip to content

Commit 7cda2cd

Browse files
committed
evaluate code on paste
1 parent 6f2d5a1 commit 7cda2cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ function handleChange(cm, change) {
182182

183183
case 'paste': {
184184
formatValue(cm);
185+
cm.onChange(cm.getValue(), { origin: change.origin });
185186
break;
186187
}
187188

0 commit comments

Comments
 (0)