BlockSuite API Documentation / @blocksuite/affine-inline-link
@blocksuite/affine-inline-link
Classes
AffineLink
Extends
ShadowlessElement<this> &DisposableClass<this>
Constructors
Other
_whenHover
_whenHover:
object
dispose()
dispose: () =>
void
Returns
void
setFloating()
setFloating: (
element?) =>void
Parameters
element?
Element
Returns
void
setReference()
setReference: (
element?) =>void
Parameters
element?
Element
Returns
void
styles
staticstyles:CSSResult
Overrides
WithDisposable(ShadowlessElement).styles
block
Get Signature
get block():
BlockComponent<BlockModel<object>,BlockService,string> |null
Returns
BlockComponent<BlockModel<object>, BlockService, string> | null
delta
inlineEditor
Get Signature
get inlineEditor():
InlineEditor<AffineTextAttributes> |undefined
Returns
InlineEditor<AffineTextAttributes> | undefined
link
Get Signature
get link():
string
Returns
string
selfInlineRange
Get Signature
get selfInlineRange():
InlineRange|null|undefined
Returns
InlineRange | null | undefined
std
connectedCallback()
connectedCallback():
void
Returns
void
Overrides
WithDisposable(ShadowlessElement).connectedCallback
openLink()
openLink(
e?):void
Parameters
e?
MouseEvent
Returns
void
attributes
controllers
dev-mode
lifecycle
properties
rendering
render()
render():
TemplateResult<1>
Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart - typically a TemplateResult. Setting properties inside this method will not trigger the element to update.
Returns
TemplateResult<1>
Overrides
WithDisposable(ShadowlessElement).render
styles
updates
Variables
htmlLinkElementToDeltaMatcher
consthtmlLinkElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<HtmlASTToDeltaMatcher>
linkDeltaMarkdownAdapterMatch
constlinkDeltaMarkdownAdapterMatch:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToPlainTextAdapterMatcher>
linkDeltaToHtmlAdapterMatcher
constlinkDeltaToHtmlAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToHtmlAdapterMatcher>
linkDeltaToMarkdownAdapterMatcher
constlinkDeltaToMarkdownAdapterMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineDeltaToMarkdownAdapterMatcher>
LinkExtension
constLinkExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineMarkdownMatch<AffineTextAttributes>>
LinkInlineSpecExtension
constLinkInlineSpecExtension:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<InlineSpecs<AffineTextAttributes>>
linkToolbar
constlinkToolbar:ExtensionType
markdownLinkToDeltaMatcher
constmarkdownLinkToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<MarkdownASTToDeltaMatcher>
notionHtmlLinkElementToDeltaMatcher
constnotionHtmlLinkElementToDeltaMatcher:ExtensionType&object
Type Declaration
identifier
identifier:
ServiceIdentifier<NotionHtmlASTToDeltaMatcher>
toggleLink
consttoggleLink:Command
Functions
toggleLinkPopup()
toggleLinkPopup(
std,type,inlineEditor,targetInlineRange,abortController):LinkPopup
Parameters
std
type
"create" | "edit"
inlineEditor
AffineInlineEditor
targetInlineRange
InlineRange
abortController
AbortController
Returns
LinkPopup