You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,15 +61,6 @@ It is discouraged to update code by changing the `code` prop directly, since it
61
61
|`devMode`|`boolean`| Boolean to enable dev mode |
62
62
63
63
64
-
### ~~`runCell(...)`~~ (deprecated due to security reasons)
65
-
66
-
~~To run the code in a cell, after it has been rendered (optional, since the cell already has a run button)~~
67
-
68
-
#### ~~Arguments~~
69
-
70
-
-~~`cellId` - Unique id of the cell to run~~
71
-
-~~`devMode` - Boolean to enable dev mode~~
72
-
73
64
## Usage
74
65
75
66
```javascript
@@ -106,7 +97,14 @@ getInbox("1");
106
97
107
98
**runCell() function has been deprecated due to security reasons, since it might be possible anyone can run some mischevious code in your process without you knowing.**
108
99
109
-
To run code from external sources, you can use the `runCell` function.
100
+
### ~~`runCell(...)`~~ (deprecated due to security reasons)
101
+
102
+
~~To run the code in a cell, after it has been rendered (optional, since the cell already has a run button)~~
103
+
104
+
#### ~~Arguments~~
105
+
106
+
-~~`cellId` - Unique id of the cell to run~~
107
+
-~~`devMode` - Boolean to enable dev mode~~
110
108
111
109
```javascript
112
110
import { runCell } from'@betteridea/codecell';
@@ -138,4 +136,4 @@ then make changes to the component and run function and test them in the vite ap
The package is essentially a wrapper around https://ide.betteridea.dev/codecell route from the main [IDE](https://ide.betteridea.dev) to run code in any webapp through a webview.
139
+
The package is essentially a wrapper around https://ide.betteridea.dev/codecell route from the main [IDE](https://ide.betteridea.dev) to run code in any webapp through a webview.
0 commit comments