html-editor.d.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxHtmlEditor from 'devextreme/ui/html_editor';
  17. import { ControlValueAccessor } from '@angular/forms';
  18. import { DxComponent } from '../core/component';
  19. import { DxTemplateHost } from '../core/template-host';
  20. import { NestedOptionHost } from '../core/nested-option';
  21. import { WatcherHelper } from '../core/watcher-helper';
  22. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  23. import { DxiMentionComponent } from './nested/mention-dxi';
  24. /**
  25. * [tags] ctp HtmlEditor is a WYSIWYG editor that allows you to format textual and visual content and to output it in HTML or Markdown. HtmlEditor is built on top of and requires Quill. #include common-ctp-note with { component: "HtmlEditor" }
  26. */
  27. export declare class DxHtmlEditorComponent extends DxComponent implements OnDestroy, ControlValueAccessor, OnChanges, DoCheck {
  28. private _watcherHelper;
  29. private _idh;
  30. instance: DxHtmlEditor;
  31. /**
  32. * Specifies the shortcut key that sets focus on the widget.
  33. */
  34. accessKey: string;
  35. /**
  36. * Specifies whether or not the widget changes its state when interacting with a user.
  37. */
  38. activeStateEnabled: boolean;
  39. /**
  40. * Allows you to customize Quill and 3rd-party modules.
  41. */
  42. customizeModules: Function;
  43. /**
  44. * Specifies whether the widget responds to user interaction.
  45. */
  46. disabled: boolean;
  47. /**
  48. * Specifies the attributes to be attached to the widget's root element.
  49. */
  50. elementAttr: any;
  51. /**
  52. * Specifies whether the widget can be focused using keyboard navigation.
  53. */
  54. focusStateEnabled: boolean;
  55. /**
  56. * Specifies the widget's height.
  57. */
  58. height: number | Function | string;
  59. /**
  60. * Specifies text for a hint that appears when a user pauses on the widget.
  61. */
  62. hint: string;
  63. /**
  64. * Specifies whether the widget changes its state when a user pauses on it.
  65. */
  66. hoverStateEnabled: boolean;
  67. /**
  68. * Specifies whether the editor's value is valid.
  69. */
  70. isValid: boolean;
  71. /**
  72. * Configures media resizing.
  73. */
  74. mediaResizing: DevExpress.ui.dxHtmlEditorMediaResizing;
  75. /**
  76. * Configures mentions.
  77. */
  78. mentions: Array<DevExpress.ui.dxHtmlEditorMention>;
  79. /**
  80. * The value to be assigned to the `name` attribute of the underlying HTML element.
  81. */
  82. name: string;
  83. /**
  84. * Specifies the text displayed when the input field is empty.
  85. */
  86. placeholder: string;
  87. /**
  88. * Specifies whether the editor is read-only.
  89. */
  90. readOnly: boolean;
  91. /**
  92. * Switches the widget to a right-to-left representation.
  93. */
  94. rtlEnabled: boolean;
  95. /**
  96. * Specifies the number of the element when the Tab key is used for navigating.
  97. */
  98. tabIndex: number;
  99. /**
  100. * Configures the widget's toolbar.
  101. */
  102. toolbar: DevExpress.ui.dxHtmlEditorToolbar;
  103. /**
  104. * Specifies information on the validation error when using a custom validation engine. Should be changed at runtime along with the isValid option.
  105. */
  106. validationError: any;
  107. /**
  108. * Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.
  109. */
  110. validationMessageMode: string;
  111. /**
  112. * Specifies the widget's value.
  113. */
  114. value: any;
  115. /**
  116. * Specifies in which markup language the value is stored.
  117. */
  118. valueType: string;
  119. /**
  120. * Configures variables, which are placeholders to be replaced with actual values when processing text.
  121. */
  122. variables: DevExpress.ui.dxHtmlEditorVariables;
  123. /**
  124. * Specifies whether the widget is visible.
  125. */
  126. visible: boolean;
  127. /**
  128. * Specifies the widget's width.
  129. */
  130. width: number | Function | string;
  131. /**
  132. * A function that is executed when the widget's content is ready and each time the content is changed.
  133. */
  134. onContentReady: EventEmitter<any>;
  135. /**
  136. * A function that is executed before the widget is disposed of.
  137. */
  138. onDisposing: EventEmitter<any>;
  139. /**
  140. * A function that is executed when the widget gets focus.
  141. */
  142. onFocusIn: EventEmitter<any>;
  143. /**
  144. * A function that is executed when the widget loses focus.
  145. */
  146. onFocusOut: EventEmitter<any>;
  147. /**
  148. * A function used in JavaScript frameworks to save the widget instance.
  149. */
  150. onInitialized: EventEmitter<any>;
  151. /**
  152. * A function that is executed after a widget option is changed.
  153. */
  154. onOptionChanged: EventEmitter<any>;
  155. /**
  156. * A function that is executed after the widget's value is changed.
  157. */
  158. onValueChanged: EventEmitter<any>;
  159. /**
  160. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  161. */
  162. accessKeyChange: EventEmitter<string>;
  163. /**
  164. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  165. */
  166. activeStateEnabledChange: EventEmitter<boolean>;
  167. /**
  168. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  169. */
  170. customizeModulesChange: EventEmitter<Function>;
  171. /**
  172. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  173. */
  174. disabledChange: EventEmitter<boolean>;
  175. /**
  176. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  177. */
  178. elementAttrChange: EventEmitter<any>;
  179. /**
  180. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  181. */
  182. focusStateEnabledChange: EventEmitter<boolean>;
  183. /**
  184. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  185. */
  186. heightChange: EventEmitter<number | Function | string>;
  187. /**
  188. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  189. */
  190. hintChange: EventEmitter<string>;
  191. /**
  192. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  193. */
  194. hoverStateEnabledChange: EventEmitter<boolean>;
  195. /**
  196. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  197. */
  198. isValidChange: EventEmitter<boolean>;
  199. /**
  200. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  201. */
  202. mediaResizingChange: EventEmitter<DevExpress.ui.dxHtmlEditorMediaResizing>;
  203. /**
  204. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  205. */
  206. mentionsChange: EventEmitter<Array<DevExpress.ui.dxHtmlEditorMention>>;
  207. /**
  208. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  209. */
  210. nameChange: EventEmitter<string>;
  211. /**
  212. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  213. */
  214. placeholderChange: EventEmitter<string>;
  215. /**
  216. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  217. */
  218. readOnlyChange: EventEmitter<boolean>;
  219. /**
  220. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  221. */
  222. rtlEnabledChange: EventEmitter<boolean>;
  223. /**
  224. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  225. */
  226. tabIndexChange: EventEmitter<number>;
  227. /**
  228. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  229. */
  230. toolbarChange: EventEmitter<DevExpress.ui.dxHtmlEditorToolbar>;
  231. /**
  232. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  233. */
  234. validationErrorChange: EventEmitter<any>;
  235. /**
  236. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  237. */
  238. validationMessageModeChange: EventEmitter<string>;
  239. /**
  240. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  241. */
  242. valueChange: EventEmitter<any>;
  243. /**
  244. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  245. */
  246. valueTypeChange: EventEmitter<string>;
  247. /**
  248. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  249. */
  250. variablesChange: EventEmitter<DevExpress.ui.dxHtmlEditorVariables>;
  251. /**
  252. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  253. */
  254. visibleChange: EventEmitter<boolean>;
  255. /**
  256. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  257. */
  258. widthChange: EventEmitter<number | Function | string>;
  259. onBlur: EventEmitter<any>;
  260. change(_: any): void;
  261. touched: (_: any) => void;
  262. mentionsChildren: QueryList<DxiMentionComponent>;
  263. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  264. protected _createInstance(element: any, options: any): DxHtmlEditor;
  265. writeValue(value: any): void;
  266. setDisabledState(isDisabled: boolean): void;
  267. registerOnChange(fn: (_: any) => void): void;
  268. registerOnTouched(fn: () => void): void;
  269. _createWidget(element: any): void;
  270. ngOnDestroy(): void;
  271. ngOnChanges(changes: SimpleChanges): void;
  272. setupChanges(prop: string, changes: SimpleChanges): void;
  273. ngDoCheck(): void;
  274. _setOption(name: string, value: any): void;
  275. }
  276. export declare class DxHtmlEditorModule {
  277. }