@umbraco-cms/backoffice
Preparing search index...
packages/tiptap
NodePos
Class NodePos
Index
Constructors
constructor
Properties
actual
Depth
Accessors
after
attributes
before
children
content
depth
element
first
Child
from
last
Child
node
parent
pos
range
size
text
Content
to
Methods
closest
query
Selector
query
Selector
All
set
Attribute
Constructors
constructor
new
NodePos
(
pos
:
ResolvedPos
,
editor
:
Editor
,
isBlock
?:
boolean
,
node
?:
null
|
Node
,
)
:
NodePos
Parameters
pos
:
ResolvedPos
editor
:
Editor
Optional
isBlock
:
boolean
Optional
node
:
null
|
Node
Returns
NodePos
Properties
actual
Depth
actualDepth
:
null
|
number
Accessors
after
get
after
()
:
null
|
NodePos
Returns
null
|
NodePos
attributes
get
attributes
()
:
{
[
key
:
string
]:
any
}
Returns
{
[
key
:
string
]:
any
}
before
get
before
()
:
null
|
NodePos
Returns
null
|
NodePos
children
get
children
()
:
NodePos
[]
Returns
NodePos
[]
content
get
content
()
:
Fragment
Returns
Fragment
set
content
(
content
:
Content
)
:
void
Parameters
content
:
Content
Returns
void
depth
get
depth
()
:
number
Returns
number
element
get
element
()
:
HTMLElement
Returns
HTMLElement
first
Child
get
firstChild
()
:
null
|
NodePos
Returns
null
|
NodePos
from
get
from
()
:
number
Returns
number
last
Child
get
lastChild
()
:
null
|
NodePos
Returns
null
|
NodePos
node
get
node
()
:
Node
Returns
Node
parent
get
parent
()
:
null
|
NodePos
Returns
null
|
NodePos
pos
get
pos
()
:
number
Returns
number
range
get
range
()
:
Range
Returns
Range
size
get
size
()
:
number
Returns
number
text
Content
get
textContent
()
:
string
Returns
string
to
get
to
()
:
number
Returns
number
Methods
closest
closest
(
selector
:
string
,
attributes
?:
{
[
key
:
string
]:
any
}
)
:
null
|
NodePos
Parameters
selector
:
string
Optional
attributes
:
{
[
key
:
string
]:
any
}
Returns
null
|
NodePos
query
Selector
querySelector
(
selector
:
string
,
attributes
?:
{
[
key
:
string
]:
any
}
,
)
:
null
|
NodePos
Parameters
selector
:
string
Optional
attributes
:
{
[
key
:
string
]:
any
}
Returns
null
|
NodePos
query
Selector
All
querySelectorAll
(
selector
:
string
,
attributes
?:
{
[
key
:
string
]:
any
}
,
firstItemOnly
?:
boolean
,
)
:
NodePos
[]
Parameters
selector
:
string
Optional
attributes
:
{
[
key
:
string
]:
any
}
Optional
firstItemOnly
:
boolean
Returns
NodePos
[]
set
Attribute
setAttribute
(
attributes
:
{
[
key
:
string
]:
any
}
)
:
void
Parameters
attributes
:
{
[
key
:
string
]:
any
}
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
actual
Depth
Accessors
after
attributes
before
children
content
depth
element
first
Child
from
last
Child
node
parent
pos
range
size
text
Content
to
Methods
closest
query
Selector
query
Selector
All
set
Attribute
@umbraco-cms/backoffice
Loading...