Trilium Frontend API
Preparing search index...
<internal>
CKEditorApi
Interface CKEditorApi
interface
CKEditorApi
{
addHtmlToEditor
(
html
:
string
)
:
void
;
addImage
(
noteId
:
string
)
:
Promise
<
void
>
;
addIncludeNote
(
noteId
:
string
,
boxSize
?:
BoxSize
)
:
void
;
addLink
(
notePath
:
string
,
linkTitle
:
string
,
externalLink
?:
boolean
)
:
void
;
addLinkToEditor
(
linkHref
:
string
,
linkTitle
:
string
)
:
void
;
getSelectedText
()
:
string
;
hasSelection
()
:
boolean
;
}
Index
Methods
add
Html
To
Editor
add
Image
add
Include
Note
add
Link
add
Link
To
Editor
get
Selected
Text
has
Selection
Methods
add
Html
To
Editor
addHtmlToEditor
(
html
:
string
)
:
void
Parameters
html
:
string
Returns
void
add
Image
addImage
(
noteId
:
string
)
:
Promise
<
void
>
Parameters
noteId
:
string
Returns
Promise
<
void
>
add
Include
Note
addIncludeNote
(
noteId
:
string
,
boxSize
?:
BoxSize
)
:
void
Parameters
noteId
:
string
Optional
boxSize
:
BoxSize
Returns
void
add
Link
addLink
(
notePath
:
string
,
linkTitle
:
string
,
externalLink
?:
boolean
)
:
void
Parameters
notePath
:
string
linkTitle
:
string
Optional
externalLink
:
boolean
Returns
void
add
Link
To
Editor
addLinkToEditor
(
linkHref
:
string
,
linkTitle
:
string
)
:
void
Parameters
linkHref
:
string
linkTitle
:
string
Returns
void
get
Selected
Text
getSelectedText
()
:
string
Returns
string
has
Selection
hasSelection
()
:
boolean
returns true if user selected some text, false if there's no selection
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
Html
To
Editor
add
Image
add
Include
Note
add
Link
add
Link
To
Editor
get
Selected
Text
has
Selection
Trilium Frontend API
Loading...
returns true if user selected some text, false if there's no selection