Skip to content

[add] document insertValue() method#40

Open
serhiipylypchuk1991 wants to merge 2 commits into
sp-next-v-2-1from
sp-next-v-SVAR-2670
Open

[add] document insertValue() method#40
serhiipylypchuk1991 wants to merge 2 commits into
sp-next-v-2-1from
sp-next-v-SVAR-2670

Conversation

@serhiipylypchuk1991
Copy link
Copy Markdown
Contributor

  • new article docs/api/methods/insert-value.md covering description, parameters (value, optional encoder), encoder snippet (text/html/markdown), example and v2.1 change log
  • register the method in sidebars.js and in main_overview.md / methods_overview.md tables

- new article docs/api/methods/insert-value.md covering description, parameters (value, optional encoder), encoder snippet (text/html/markdown), example and v2.1 change log
- register the method in sidebars.js and in main_overview.md / methods_overview.md tables
@serhiipylypchuk1991 serhiipylypchuk1991 self-assigned this May 22, 2026
@DmitriySlabodchikov
Copy link
Copy Markdown

all is ok

Comment thread docs/api/methods/insert-value.md Outdated
Comment thread docs/api/methods/insert-value.md Outdated
### Parameters

- `value` - (required) a value to be inserted into the RichText at the current cursor position. If a selection is active, the selection is replaced with the new value
- `encoder` - (optional) a parser used to decode the inserted value from a custom format. The following formats are available: `html` (default), `text`, and `markdown`
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"custom format" is somewhat misleading. only 3 formats are supported, which is said later. so just drop "from a custom format"

- @short now describes the inserted content as "text, Markdown, or HTML" instead of the abstract "a value"
- drop "from a custom format" from the encoder description; the supported formats are listed on the next line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants