rename set to configure
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
Document,
|
||||
Paragraph,
|
||||
Text,
|
||||
Heading.set({
|
||||
Heading.configure({
|
||||
level: [1, 2, 3],
|
||||
}),
|
||||
Bold,
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
Document,
|
||||
Paragraph,
|
||||
Text,
|
||||
Collaboration.set({
|
||||
Collaboration.configure({
|
||||
provider: this.provider,
|
||||
type: this.type,
|
||||
}),
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
Document,
|
||||
Paragraph,
|
||||
Text,
|
||||
Focus.set({
|
||||
Focus.configure({
|
||||
className: 'has-focus',
|
||||
nested: true,
|
||||
}),
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
Document,
|
||||
Paragraph,
|
||||
Text,
|
||||
Heading.set({
|
||||
Heading.configure({
|
||||
levels: [1, 2, 3],
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user