@@ -20615,7 +20615,10 @@ Requires React 18.",
2061520615 },
2061620616 {
2061720617 "description": "Inserts text at a specified position. Only supported when \`menus\` or \`tokens\` is defined.
20618- Triggers input events and menu detection.",
20618+ Triggers input events and menu detection.
20619+
20620+ When pinned reference tokens are present, \`caretStart\` and \`caretEnd\` are automatically
20621+ shifted to account for their positions.",
2061920622 "name": "insertText",
2062020623 "parameters": [
2062120624 {
@@ -40890,8 +40893,7 @@ If not specified, the method returns the result text that is currently displayed
4089040893 },
4089140894 },
4089240895 {
40893- "description": "Finds the contentEditable element used when menus are defined.
40894- Returns null if the component does not have menus defined.",
40896+ "description": "Finds the contentEditable element used when \`menus\` or \`tokens\` is defined.",
4089540897 "name": "findContentEditableElement",
4089640898 "parameters": [],
4089740899 "returnType": {
@@ -40920,8 +40922,8 @@ Returns null if the component does not have menus defined.",
4092040922 {
4092140923 "description": "Finds the native textarea element.
4092240924
40923- Note: When menus are defined, the component uses a contentEditable element instead of a textarea.
40924- In this case, use findContentEditableElement() or getValue() instead.",
40925+ Note: When \` menus\` or \`tokens\` is defined, the component uses a contentEditable element instead of a textarea.
40926+ In this case, use findContentEditableElement() instead.",
4092540927 "name": "findNativeTextarea",
4092640928 "parameters": [],
4092740929 "returnType": {
@@ -40935,7 +40937,7 @@ In this case, use findContentEditableElement() or getValue() instead.",
4093540937 },
4093640938 },
4093740939 {
40938- "description": "Finds the menu dropdown (always in portal due to expandToViewport=true) .",
40940+ "description": "Finds the menu dropdown when \`menus\` or \`tokens\` is defined .",
4093940941 "name": "findOpenMenu",
4094040942 "parameters": [],
4094140943 "returnType": {
@@ -40973,19 +40975,11 @@ In this case, use findContentEditableElement() or getValue() instead.",
4097340975 {
4097440976 "description": "Gets the value of the component.
4097540977
40976- Returns the current value of the textarea.",
40977- "name": "getTextareaValue",
40978- "parameters": [],
40979- "returnType": {
40980- "isNullable": false,
40981- "name": "string",
40982- },
40983- },
40984- {
40985- "description": "Gets the value of the component.
40978+ Returns the current value of the textarea.
4098640979
40987- Returns the current value of the textarea (when no menus are defined) or the text content of the contentEditable element (when menus are defined).",
40988- "name": "getValue",
40980+ When \`menus\` or \`tokens\` is defined, the component uses a contentEditable element.
40981+ Use findContentEditableElement().getElement().textContent instead.",
40982+ "name": "getTextareaValue",
4098940983 "parameters": [],
4099040984 "returnType": {
4099140985 "isNullable": false,
@@ -41038,7 +41032,10 @@ Returns the current value of the textarea (when no menus are defined) or the tex
4103841032 },
4103941033 },
4104041034 {
41041- "description": "Sets the value of the textarea and calls the onChange handler.",
41035+ "description": "Sets the value of the textarea and calls the onChange handler.
41036+
41037+ When \`menus\` or \`tokens\` is defined, the component uses a contentEditable element
41038+ and this method will have no effect.",
4104241039 "name": "setTextareaValue",
4104341040 "parameters": [
4104441041 {
@@ -50488,8 +50485,7 @@ If not specified, the method returns the result text that is currently displayed
5048850485 },
5048950486 },
5049050487 {
50491- "description": "Finds the contentEditable element used when menus are defined.
50492- Returns null if the component does not have menus defined.",
50488+ "description": "Finds the contentEditable element used when \`menus\` or \`tokens\` is defined.",
5049350489 "name": "findContentEditableElement",
5049450490 "parameters": [],
5049550491 "returnType": {
@@ -50508,8 +50504,8 @@ Returns null if the component does not have menus defined.",
5050850504 {
5050950505 "description": "Finds the native textarea element.
5051050506
50511- Note: When menus are defined, the component uses a contentEditable element instead of a textarea.
50512- In this case, use findContentEditableElement() or getValue() instead.",
50507+ Note: When \` menus\` or \`tokens\` is defined, the component uses a contentEditable element instead of a textarea.
50508+ In this case, use findContentEditableElement() instead.",
5051350509 "name": "findNativeTextarea",
5051450510 "parameters": [],
5051550511 "returnType": {
@@ -50518,7 +50514,7 @@ In this case, use findContentEditableElement() or getValue() instead.",
5051850514 },
5051950515 },
5052050516 {
50521- "description": "Finds the menu dropdown (always in portal due to expandToViewport=true) .",
50517+ "description": "Finds the menu dropdown when \`menus\` or \`tokens\` is defined .",
5052250518 "name": "findOpenMenu",
5052350519 "parameters": [],
5052450520 "returnType": {
0 commit comments