Merge branch 'main' of https://github.com/ueberdosis/tiptap-next into feature/improve-command-chaining
This commit is contained in:
@@ -36,7 +36,9 @@ export default {
|
||||
CodeBlock(),
|
||||
],
|
||||
content: `
|
||||
<p>That’s a boring paragraph followed by a fenced code block:</p>
|
||||
<p>
|
||||
That’s a boring paragraph followed by a fenced code block:
|
||||
</p>
|
||||
<pre><code>for (var i=1; i <= 20; i++)
|
||||
{
|
||||
if (i % 15 == 0)
|
||||
@@ -48,7 +50,9 @@ export default {
|
||||
else
|
||||
console.log(i);
|
||||
}</code></pre>
|
||||
<p>Press Command/Ctrl + Enter to leave the fenced code block and continue typing in boring paragraphs.
|
||||
<p>
|
||||
Press Command/Ctrl + Enter to leave the fenced code block and continue typing in boring paragraphs.
|
||||
</p>
|
||||
`,
|
||||
})
|
||||
},
|
||||
|
||||
@@ -57,7 +57,7 @@ export default () => {
|
||||
<button onClick={() => alert(JSON.stringify(value))}>Alert state</button>
|
||||
</p>
|
||||
<hr style={{ margin: '0.85rem 0'}} />
|
||||
<Editor
|
||||
<Editor
|
||||
value={value}
|
||||
onChange={setValue}
|
||||
extensions={extensions()}
|
||||
|
||||
Reference in New Issue
Block a user