Skip to content

Commit b630234

Browse files
authored
Update README.md
1 parent 10466c4 commit b630234

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@ It is discouraged to update code by changing the `code` prop directly, since it
6161
| `devMode` | `boolean` | Boolean to enable dev mode |
6262

6363

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-
7364
## Usage
7465

7566
```javascript
@@ -106,7 +97,14 @@ getInbox("1");
10697

10798
**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.**
10899

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~~
110108

111109
```javascript
112110
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
138136

139137
3. `/codecell` webview -> [next_app/src/pages/codecell.tsx](https://github.com/betteridea-dev/ide/blob/main/next_app/src/pages/codecell.tsx)
140138

141-
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

Comments
 (0)