Skip to content

Commit

Permalink
Added documentation about buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Mar 1, 2025
1 parent db59bf1 commit 948a0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_includes/example1.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Jodit.make('#example1', {
buttons: [
{
icon: 'source',
mode: Jodit.constants.MODE_SPLIT,
exec: editor => {
editor.toggleMode();
}
Expand Down
2 changes: 2 additions & 0 deletions docs/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Jodit.make('#editor', {
buttons: [
{
icon: 'source',
mode: Jodit.constants.MODE_SPLIT, // The button is available in both modes
exec: editor => {
editor.toggleMode();
}
Expand All @@ -27,6 +28,7 @@ Jodit.make('#editor', {

{% include [Example1](./_includes/example1.md) %}


> We implement the [IControlType](https://xdsoft.net/jodit/docs/interfaces/types.IControlType.html) interface.
We are using the pre-connected icon `source`.
Expand Down

0 comments on commit 948a0f3

Please sign in to comment.