BlockSuite API Documentation / @blocksuite/inline / AttributeService
Class: AttributeService<TextAttributes>
Defined in: packages/framework/inline/src/services/attribute.ts:11
Type Parameters
TextAttributes
TextAttributes
extends BaseTextAttributes
Constructors
new AttributeService()
new AttributeService<
TextAttributes
>(editor
):AttributeService
<TextAttributes
>
Defined in: packages/framework/inline/src/services/attribute.ts:108
Parameters
editor
InlineEditor
<TextAttributes
>
Returns
AttributeService
<TextAttributes
>
Properties
editor
readonly
editor:InlineEditor
<TextAttributes
>
Defined in: packages/framework/inline/src/services/attribute.ts:108
Accessors
attributeRenderer
Get Signature
get attributeRenderer():
AttributeRenderer
<TextAttributes
>
Defined in: packages/framework/inline/src/services/attribute.ts:100
Returns
AttributeRenderer
<TextAttributes
>
marks
Get Signature
get marks():
null
|TextAttributes
Defined in: packages/framework/inline/src/services/attribute.ts:104
Returns
null
| TextAttributes
Methods
getFormat()
getFormat(
inlineRange
,loose
):TextAttributes
Defined in: packages/framework/inline/src/services/attribute.ts:20
Parameters
inlineRange
loose
boolean
= false
Returns
TextAttributes
normalizeAttributes()
normalizeAttributes(
textAttributes
?):undefined
|TextAttributes
Defined in: packages/framework/inline/src/services/attribute.ts:67
Parameters
textAttributes?
TextAttributes
Returns
undefined
| TextAttributes
resetMarks()
resetMarks():
void
Defined in: packages/framework/inline/src/services/attribute.ts:82
Returns
void
setAttributeRenderer()
setAttributeRenderer(
renderer
):void
Defined in: packages/framework/inline/src/services/attribute.ts:86
Parameters
renderer
AttributeRenderer
<TextAttributes
>
Returns
void
setAttributeSchema()
setAttributeSchema(
schema
):void
Defined in: packages/framework/inline/src/services/attribute.ts:90
Parameters
schema
ZodType
<TextAttributes
, ZodTypeDef
, unknown
>
Returns
void
setMarks()
setMarks(
marks
):void
Defined in: packages/framework/inline/src/services/attribute.ts:96
Parameters
marks
TextAttributes
Returns
void