[BREAKING CHANGE] change the default document type to doc
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -14,7 +14,7 @@ export default {
|
||||
return {
|
||||
output: '',
|
||||
json: {
|
||||
type: 'document',
|
||||
type: 'doc',
|
||||
content: [
|
||||
{
|
||||
type: 'paragraph',
|
||||
|
||||
@@ -14,7 +14,7 @@ context('/demos/Nodes/Document', () => {
|
||||
const json = editor.getJSON()
|
||||
|
||||
expect(json).to.deep.equal({
|
||||
type: 'document',
|
||||
type: 'doc',
|
||||
content: [
|
||||
{
|
||||
type: 'paragraph',
|
||||
|
||||
@@ -24,7 +24,7 @@ const MenuBar = () => {
|
||||
|
||||
export default () => {
|
||||
const [value, setValue] = useState({
|
||||
type: 'document',
|
||||
type: 'doc',
|
||||
content: [
|
||||
{
|
||||
type: 'paragraph',
|
||||
|
||||
Reference in New Issue
Block a user