rename set to configure

This commit is contained in:
Philipp Kühn
2020-11-16 11:07:06 +01:00
parent 356696772e
commit b44aafa97c
11 changed files with 22 additions and 22 deletions

View File

@@ -135,11 +135,11 @@ export default {
this.editor = new Editor({
extensions: [
...defaultExtensions(),
Collaboration.set({
Collaboration.configure({
provider: this.provider,
type: this.type,
}),
CollaborationCursor.set({
CollaborationCursor.configure({
provider: this.provider,
name: this.name,
color: this.color,

View File

@@ -64,7 +64,7 @@ export default {
Document,
Paragraph,
Text,
Heading.set({
Heading.configure({
level: [1, 2, 3],
}),
Bold,

View File

@@ -40,7 +40,7 @@ export default {
Document,
Paragraph,
Text,
Collaboration.set({
Collaboration.configure({
provider: this.provider,
type: this.type,
}),

View File

@@ -41,11 +41,11 @@ export default {
Document,
Paragraph,
Text,
Collaboration.set({
Collaboration.configure({
provider: this.provider,
type: this.type,
}),
CollaborationCursor.set({
CollaborationCursor.configure({
provider: this.provider,
name: 'Cyndi Lauper',
color: '#f783ac',

View File

@@ -31,7 +31,7 @@ export default {
Document,
Paragraph,
Text,
Focus.set({
Focus.configure({
className: 'has-focus',
nested: true,
}),

View File

@@ -39,7 +39,7 @@ export default {
Document,
Paragraph,
Text,
Heading.set({
Heading.configure({
levels: [1, 2, 3],
}),
],

View File

@@ -34,12 +34,12 @@ Most extensions allow you to add attributes to the rendered HTML through the `HT
new Editor({
extensions: [
Document,
Paragraph.set({
Paragraph.configure({
HTMLAttributes: {
class: 'my-custom-paragraph',
},
}),
Heading.set({
Heading.configure({
HTMLAttributes: {
class: 'my-custom-heading',
},