BlockSuite API Documentation / @blocksuite/inline / AttributeService
Class: AttributeService<TextAttributes>
Type Parameters
• TextAttributes extends BaseTextAttributes
Constructors
new AttributeService()
new AttributeService<
TextAttributes
>(editor
):AttributeService
<TextAttributes
>
Parameters
editor
InlineEditor
<TextAttributes
>
Returns
AttributeService
<TextAttributes
>
Defined in
packages/framework/inline/src/services/attribute.ts:109
Properties
editor
readonly
editor:InlineEditor
<TextAttributes
>
Defined in
packages/framework/inline/src/services/attribute.ts:109
Accessors
attributeRenderer
Get Signature
get attributeRenderer():
AttributeRenderer
<TextAttributes
>
Returns
AttributeRenderer
<TextAttributes
>
Defined in
packages/framework/inline/src/services/attribute.ts:101
marks
Get Signature
get marks():
null
|TextAttributes
Returns
null
| TextAttributes
Defined in
packages/framework/inline/src/services/attribute.ts:105
Methods
getFormat()
getFormat(
inlineRange
,loose
):TextAttributes
Parameters
inlineRange
loose
boolean
= false
Returns
TextAttributes
Defined in
packages/framework/inline/src/services/attribute.ts:21
normalizeAttributes()
normalizeAttributes(
textAttributes
?):undefined
|TextAttributes
Parameters
textAttributes?
TextAttributes
Returns
undefined
| TextAttributes
Defined in
packages/framework/inline/src/services/attribute.ts:68
resetMarks()
resetMarks():
void
Returns
void
Defined in
packages/framework/inline/src/services/attribute.ts:83
setAttributeRenderer()
setAttributeRenderer(
renderer
):void
Parameters
renderer
AttributeRenderer
<TextAttributes
>
Returns
void
Defined in
packages/framework/inline/src/services/attribute.ts:87
setAttributeSchema()
setAttributeSchema(
schema
):void
Parameters
schema
ZodType
<TextAttributes
, ZodTypeDef
, unknown
>
Returns
void
Defined in
packages/framework/inline/src/services/attribute.ts:91
setMarks()
setMarks(
marks
):void
Parameters
marks
TextAttributes
Returns
void
Defined in
packages/framework/inline/src/services/attribute.ts:97