/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_event_hub.h | 242 TextRange GetRangeBefore() const; 245 TextRange GetRangeAfter() const; 253 rangeBefore_ = TextRange(); in reset() 254 rangeAfter_ = TextRange(); in reset() 262 TextRange rangeBefore_; 263 TextRange rangeAfter_; 273 TextRange GetRangeBefore() const; 275 void SetRangeAfter(const TextRange& range); 276 TextRange GetRangeAfter() const; 282 TextRange rangeBefore_; [all …]
|
H A D | rich_editor_event_hub.cpp | 419 void RichEditorChangeValue::SetRangeBefore(const TextRange& rangeBefore) in SetRangeBefore() 424 TextRange RichEditorChangeValue::GetRangeBefore() const in GetRangeBefore() 429 void RichEditorChangeValue::SetRangeAfter(const TextRange& rangeAfter) in SetRangeAfter() 434 TextRange RichEditorChangeValue::GetRangeAfter() const in GetRangeAfter() 439 void StyledStringChangeValue::SetRangeBefore(const TextRange& range) in SetRangeBefore() 444 TextRange StyledStringChangeValue::GetRangeBefore() const in GetRangeBefore() 449 void StyledStringChangeValue::SetRangeAfter(const TextRange& range) in SetRangeAfter() 454 TextRange StyledStringChangeValue::GetRangeAfter() const in GetRangeAfter() 507 void RichEditorEventHub::SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) in SetOnDidIMEInput() 512 void RichEditorEventHub::FireOnDidIMEInput(const TextRange& range) in FireOnDidIMEInput()
|
H A D | rich_editor_model_ng.h | 32 void SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) override; 62 …static void SetOnDidIMEInput(FrameNode* frameNode, std::function<void(const TextRange&)>&& callbac…
|
H A D | rich_editor_model_ng.cpp | 144 void RichEditorModelNG::SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) in SetOnDidIMEInput() 161 void RichEditorModelNG::SetOnDidIMEInput(FrameNode* frameNode, std::function<void(const TextRange&)… in SetOnDidIMEInput()
|
H A D | rich_editor_model.h | 344 virtual void SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) = 0;
|
H A D | rich_editor_pattern.cpp | 5350 TextRange onDidIMEInputRange{ caretPosition_, caretPosition_ + insertValueLength }; in AfterIMEInsertValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_range.h | 23 struct TextRange { struct 27 bool operator==(const TextRange& other) const argument 32 bool operator!=(const TextRange& other) const
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-text-common.md | 97 getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array… 109 | range | [TextRange](#textrange12)| 是 | 需要获取的区域的文本区间。 | 240 onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean 253 | range | [TextRange](#textrange12) | 是 | 选中的文本信息。 | 261 ## TextRange<sup>12+</sup> 397 type OnDidChangeCallback = (rangeBefore: TextRange, rangeAfter: TextRange) => void 409 | rangeBefore | [TextRange](#textrange12) | 是 | 文本变化前将要被替换的文本范围。 | 410 | rangeAfter | [TextRange](#textrange12) | 是 | 文本变化后新增内容的文本范围。 | 435 | range | TextRange | 是 | 即将被替换的属性字符串子串在原字符串中的范围。 |
|
H A D | ts-basic-components-richeditor.md | 392 onDidIMEInput(callback:Callback\<TextRange>) 406 | callback | Callback\<[TextRange](ts-text-common.md#textrange12)\> | 是 | TextRange为输入法本次输入内容的范围。<b… 830 | rangeBefore | [TextRange](ts-text-common.md#textrange12) | 是 | 即将被替换内容的开始和结束索引。 | 4063 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { 4520 onMenuItemClicked(menuItem: TextMenuItem, textRange: TextRange) { 4538 onMenuItemClick: (menuItem: TextMenuItem, textRange: TextRange) => { 4584 .onDidIMEInput((value: TextRange) => {
|
H A D | ts-basic-components-text.md | 1689 let range: TextRange = { start: 0, end: 1 } 1761 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
H A D | ts-basic-components-search.md | 1370 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
H A D | ts-basic-components-textarea.md | 1761 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
H A D | ts-basic-components-textinput.md | 2207 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-text-common.md | 97 getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array… 109 | range | [TextRange](#textrange12)| Yes | Text range for which to obtain the area informati… 240 onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean 253 | range | [TextRange](#textrange12) | Yes | Selected text.| 261 ## TextRange<sup>12+</sup> 397 type OnDidChangeCallback = (rangeBefore: TextRange, rangeAfter: TextRange) => void 409 | rangeBefore | [TextRange](#textrange12) | Yes| Range of the text to be changed.| 410 | rangeAfter | [TextRange](#textrange12) | Yes| Range of the text added.| 435 | range | TextRange | Yes| Range of the styled string to be replaced in the original string.|
|
H A D | ts-basic-components-richeditor.md | 394 onDidIMEInput(callback:Callback\<TextRange>) 408 …Callback\<[TextRange](ts-text-common.md#textrange12)\> | Yes| Callback invoked when text input in … 831 | rangeBefore | [TextRange](ts-text-common.md#textrange12) | Yes | Start and end indexes of the c… 4051 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { 4510 onMenuItemClicked(menuItem: TextMenuItem, textRange: TextRange) { 4528 onMenuItemClick: (menuItem: TextMenuItem, textRange: TextRange) => { 4575 .onDidIMEInput((value: TextRange) => {
|
H A D | ts-basic-components-text.md | 1689 let range: TextRange = { start: 0, end: 1 } 1761 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
H A D | ts-basic-components-search.md | 1371 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
H A D | ts-basic-components-textarea.md | 1769 …CreateMenu: this.onCreateMenu, onMenuItemClick: (menuItem: TextMenuItem, textRange: TextRange) => {
|
H A D | ts-basic-components-textinput.md | 2210 onMenuItemClick = (menuItem: TextMenuItem, textRange: TextRange) => {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | richeditor_model_impl.h | 29 void SetOnDidIMEInput(std::function<void(const TextRange&)>&& func) override {} in SetOnDidIMEInput()
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-common-components-richeditor.md | 293 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_richeditor.h | 40 static JSRef<JSVal> CreateJsOnDidIMEInput(const TextRange& textRange);
|
H A D | js_richeditor.cpp | 500 …AceType::MakeRefPtr<JsEventFunction<TextRange, 1>>(JSRef<JSFunc>::Cast(args[0]), CreateJsOnDidIMEI… in SetOnDidIMEInput() 502 const TextRange& textRange) { in SetOnDidIMEInput() 692 JSRef<JSVal> JSRichEditor::CreateJsOnDidIMEInput(const TextRange& range) in CreateJsOnDidIMEInput()
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-common-components-richeditor.md | 240 .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => {
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | ts-basic-components-web.md | 2633 onMenuItemClick(menuItem: TextMenuItem, textRange: TextRange): boolean {
|