[BREAKING CHANGE] change the default document type to doc

This commit is contained in:
Hans Pagel
2021-01-28 11:58:10 +01:00
parent a885669929
commit 62f42a229f
10 changed files with 11 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ context('/demos/Guide/Content/ExportJSON', () => {
const json = editor.getJSON()
expect(json).to.deep.equal({
type: 'document',
type: 'doc',
content: [
{
type: 'paragraph',

View File

@@ -62,7 +62,7 @@ export default {
setContent() {
// You can pass a JSON document to the editor.
this.editor.commands.setContent({
type: 'document',
type: 'doc',
content: [{
type: 'paragraph',
content: [

View File

@@ -14,7 +14,7 @@ export default {
return {
output: '',
json: {
type: 'document',
type: 'doc',
content: [
{
type: 'paragraph',