# Editor Integration

The plugin adds a menu button to the default TinyMCE editor that allows a convenient way to add the `[chordpress]` or `[chordpress-chord]` shortcode.

<figure><img src="/files/lbEdCw8mDA8yMX7K1XY8" alt=""><figcaption></figcaption></figure>

## Empty Tag

You can use it anywhere in your editor to add a shortcut with the default parameters. Paste your ChordPro code in between the tags after that:

<figure><img src="/files/7Lk7Vkkb3yIBq1sGEwc7" alt=""><figcaption></figcaption></figure>

## Selection Tag

You can also select your ChordPro text first and then click the menu entry. Your selected text will then automatically put inside the tags:

<figure><img src="/files/ygMXCOaAMTVzXwF5rTjY" alt=""><figcaption></figcaption></figure>

Result:

<figure><img src="/files/nvqR4WtEdelZxXPECSPB" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lewe.gitbook.io/lewe-chordpress/editor-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
