|
@@ -105,11 +105,10 @@ describe( 'Schema', () => {
|
|
|
schema.register( '$text', {
|
|
schema.register( '$text', {
|
|
|
allowIn: 'paragraph'
|
|
allowIn: 'paragraph'
|
|
|
} );
|
|
} );
|
|
|
|
|
+ schema.extend( '$text', { allowAttributes: 'testAttribute' } );
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( 'allows registering new properties', () => {
|
|
it( 'allows registering new properties', () => {
|
|
|
- schema.extend( '$text', { allowAttributes: 'testAttribute' } );
|
|
|
|
|
-
|
|
|
|
|
schema.setAttributeProperties( 'testAttribute', {
|
|
schema.setAttributeProperties( 'testAttribute', {
|
|
|
foo: 'bar',
|
|
foo: 'bar',
|
|
|
baz: 'bom'
|
|
baz: 'bom'
|
|
@@ -122,8 +121,6 @@ describe( 'Schema', () => {
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( 'support adding properties in subsequent calls', () => {
|
|
it( 'support adding properties in subsequent calls', () => {
|
|
|
- schema.extend( '$text', { allowAttributes: 'testAttribute' } );
|
|
|
|
|
-
|
|
|
|
|
schema.setAttributeProperties( 'testAttribute', {
|
|
schema.setAttributeProperties( 'testAttribute', {
|
|
|
first: 'foo'
|
|
first: 'foo'
|
|
|
} );
|
|
} );
|