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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,11 @@ This plugin adds the possibility to embed custom code
27
27
|`blockCustomCode`| Object to extend the default custom code block, eg. `{ label: 'Custom Code', category: 'Extra', ... }`. Pass a falsy value to avoid adding the block |`{}`|
28
28
|`propsCustomCode`| Object to extend the default custom code properties, eg. `{ name: 'Custom Code', components: '<span>Initial content</span>' ... }`|`{}`|
29
29
|`toolbarBtnCustomCode`| Object to extend the default component's toolbar button for the code, eg. `{ label: '</>', attributes: { title: 'Open custom code' } }`. Pass a falsy value to avoid adding the button |`{}`|
30
-
|`placeholderScript`| Content to show when the custom code contains `<script>`|[Check the source](https://github.com/artf/grapesjs-custom-code/tree/master/src/index.js)|
30
+
|`placeholderScript`| Content to show when the custom code contains `<script>`|[Check the source](https://github.com/GrapesJS/components-custom-code/blob/master/src/index.ts)|
31
31
|`modalTitle`| Title for the modal |`Insert your code`|
32
32
|`codeViewOptions`| Additional options for the code viewer, eg. `{ theme: 'hopscotch', readOnly: 0 }`|`{}`|
33
33
|`buttonLabel`| Label for the default save button |`Save`|
34
-
|`commandCustomCode`| Object to extend the default custom code command, eg. `{ getPreContent: () => '<div>Paste here</div>' }`[Check the source](https://github.com/artf/grapesjs-custom-code/tree/master/src/commands.js) to see all available methods |`{}`|
34
+
|`commandCustomCode`| Object to extend the default custom code command, eg. `{ getPreContent: () => '<div>Paste here</div>' }`[Check the source](https://github.com/GrapesJS/components-custom-code/blob/master/src/commands.ts) to see all available methods |`{}`|
35
35
36
36
37
37
@@ -44,7 +44,7 @@ This plugin adds the possibility to embed custom code
0 commit comments