@serenity-is/corelib / HtmlReportContentEditor
Class: HtmlReportContentEditor<P>
Extends
Type Parameters
• P extends HtmlContentEditorOptions = HtmlContentEditorOptions
Constructors
new HtmlReportContentEditor()
new HtmlReportContentEditor<
P>(props):HtmlReportContentEditor<P>
Parameters
props
EditorProps<P>
Returns
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:25
Properties
domNode
readonlydomNode:HTMLTextAreaElement
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:21
idPrefix
readonlyidPrefix:string
Inherited from
Defined in
options
protectedreadonlyoptions:WidgetProps<EditorProps<P>>
Inherited from
Defined in
uniqueName
readonlyuniqueName:string
Inherited from
Defined in
CKEditorBasePath
staticCKEditorBasePath:string
Inherited from
HtmlContentEditor.CKEditorBasePath
Defined in
src/ui/editors/htmlcontenteditor.tsx:198
CKEditorVer
staticCKEditorVer:string="4.22.1"
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:197
isComponent
readonlystaticisComponent:true=true
Inherited from
Defined in
typeInfo
statictypeInfo:ClassTypeInfo<"Serenity.EditorWidget">
Inherited from
Defined in
src/ui/editors/editorwidget.ts:17
Accessors
element
Get Signature
get element():
Fluent<HTMLElement>
Returns a Fluent(this.domNode) object
Returns
Fluent<HTMLElement>
Inherited from
Defined in
props
Get Signature
get props():
WidgetProps<P>
Returns
WidgetProps<P>
Inherited from
Defined in
readOnly
Get Signature
get readOnly():
boolean
Returns
boolean
Set Signature
set readOnly(
value):void
Parameters
value
boolean
Returns
void
Inherited from
Defined in
src/ui/editors/editorwidget.ts:23
value
Get Signature
get value():
string
Returns
string
Set Signature
set value(
v):void
Parameters
v
string
Returns
void
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:162
Methods
addCssClass()
protectedaddCssClass():void
Returns
void
Inherited from
Defined in
addValidationRule()
Call Signature
addValidationRule(
rule,uniqueName?):void
Parameters
rule
(input) => string
uniqueName?
string
Returns
void
Inherited from
HtmlContentEditor.addValidationRule
Defined in
Call Signature
addValidationRule(
uniqueName,rule):void
Parameters
uniqueName
string
rule
(input) => string
Returns
void
Inherited from
HtmlContentEditor.addValidationRule
Defined in
afterRender()
protectedafterRender(callback):void
Parameters
callback
() => void
Returns
void
Inherited from
Defined in
byId()
protectedbyId<TElement>(id):Fluent<TElement>
Type Parameters
• TElement extends HTMLElement = HTMLElement
Parameters
id
string
Returns
Fluent<TElement>
Inherited from
Defined in
change()
change(
handler):void
Parameters
handler
(e) => void
Returns
void
Inherited from
Defined in
changeSelect2()
changeSelect2(
handler):void
Parameters
handler
(e) => void
Returns
void
Inherited from
HtmlContentEditor.changeSelect2
Defined in
deferRender()
protecteddeferRender():boolean
Returns
boolean
Inherited from
Defined in
destroy()
destroy():
void
Returns
void
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:146
findById()
protectedfindById<TElement>(id):TElement
Type Parameters
• TElement extends HTMLElement = HTMLElement
Parameters
id
string
Returns
TElement
Inherited from
Defined in
get_readOnly()
get_readOnly():
boolean
Returns
boolean
Inherited from
HtmlContentEditor.get_readOnly
Defined in
src/ui/editors/htmlcontenteditor.tsx:177
get_value()
get_value():
string
Returns
string
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:152
getConfig()
protectedgetConfig():CKEditorConfig
Returns
Overrides
Defined in
src/ui/editors/htmlcontenteditor.tsx:252
getCssClass()
protectedgetCssClass():string
Returns
string
Inherited from
Defined in
getCustomAttribute()
protectedgetCustomAttribute<TAttr>(attrType,inherit):TAttr
Type Parameters
• TAttr
Parameters
attrType
(...args) => TAttr
inherit
boolean = true
Returns
TAttr
Inherited from
HtmlContentEditor.getCustomAttribute
Defined in
getEditorInstance()
protectedgetEditorInstance():any
Returns
any
Inherited from
HtmlContentEditor.getEditorInstance
Defined in
src/ui/editors/htmlcontenteditor.tsx:141
getGridField()
getGridField():
Fluent<HTMLElement>
Returns
Fluent<HTMLElement>
Inherited from
HtmlContentEditor.getGridField
Defined in
getLanguage()
protectedgetLanguage():string
Returns
string
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:72
init()
init():
this
Returns
this
Inherited from
Defined in
instanceReady()
protectedinstanceReady(x):void
Parameters
x
any
Returns
void
Inherited from
HtmlContentEditor.instanceReady
Defined in
src/ui/editors/htmlcontenteditor.tsx:60
internalRenderContents()
internalRenderContents():
void
Returns
void
Inherited from
HtmlContentEditor.internalRenderContents
Defined in
legacyTemplateRender()
protectedlegacyTemplateRender():boolean
Returns
boolean
Inherited from
HtmlContentEditor.legacyTemplateRender
Defined in
render()
render():
any
Returns the main element for this widget or the document fragment. As widgets may get their elements from props unlike regular JSX widgets, this method should not be overridden. Override renderContents() instead.
Returns
any
Inherited from
Defined in
renderContents()
protectedrenderContents():any
Returns
any
Inherited from
HtmlContentEditor.renderContents
Defined in
set_readOnly()
set_readOnly(
value):void
Parameters
value
boolean
Returns
void
Inherited from
HtmlContentEditor.set_readOnly
Defined in
src/ui/editors/htmlcontenteditor.tsx:181
set_value()
set_value(
value):void
Parameters
value
string
Returns
void
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.tsx:166
syncOrAsyncThen()
protectedsyncOrAsyncThen<T>(syncMethod,asyncMethod,then):void
Type Parameters
• T
Parameters
syncMethod
() => T
asyncMethod
() => PromiseLike<T>
then
(v) => void
Returns
void
Inherited from
HtmlContentEditor.syncOrAsyncThen
Defined in
useIdPrefix()
protecteduseIdPrefix():IdPrefixType
Returns
Inherited from
Defined in
create()
staticcreate<TWidget,P>(params):TWidget
Type Parameters
• TWidget extends Widget<P>
• P
Parameters
params
CreateWidgetParams<TWidget, P>
Returns
TWidget
Inherited from
Defined in
createDefaultElement()
staticcreateDefaultElement():HTMLTextAreaElement
Returns
HTMLTextAreaElement
Inherited from
HtmlContentEditor.createDefaultElement
Defined in
src/ui/editors/htmlcontenteditor.tsx:23
getCKEditorBasePath()
staticgetCKEditorBasePath():string
Returns
string
Inherited from
HtmlContentEditor.getCKEditorBasePath
Defined in
src/ui/editors/htmlcontenteditor.tsx:200
getWidgetName()
staticgetWidgetName(type):string
Parameters
type
Function
Returns
string
Inherited from
HtmlContentEditor.getWidgetName
Defined in
includeCKEditor()
staticincludeCKEditor(then):void
Parameters
then
() => void
Returns
void
Inherited from
HtmlContentEditor.includeCKEditor