Before repair nav components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
This commit is contained in:
19
docs/demo_editor.md
Normal file
19
docs/demo_editor.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# Editor
|
||||
<div id="demo-editor"></div>
|
||||
|
||||
<div id="demo-editor-output" class="mt-4 p-4 border border-base-300 rounded-box bg-base-200"></div>
|
||||
|
||||
```js
|
||||
const content = $('<p><strong>Hello</strong> world!</p>');
|
||||
|
||||
mount(
|
||||
div({ class: 'flex flex-col gap-4' }, [
|
||||
Editor({
|
||||
value: content,
|
||||
placeholder: 'Escribe tu historia…',
|
||||
class: 'max-w-2xl'
|
||||
})
|
||||
]),
|
||||
'#demo-editor'
|
||||
);
|
||||
```
|
||||
Reference in New Issue
Block a user