Support » Plugins » Hacks » How to add a button in the visual post editing mode?

  • Hello, I would like a button that does the following:

    -when I am writing a post I can select some text with the cursor;
    -the text is selected I can click a button;
    -the button appends

    <p lang=”en”>

    at the beginning of the text highlighted and

    </p>

    at the end.

    Pretty much what happens if I click the b button. WP appends <strong>b</strong>. I need the same but with <p lang="en">text</p>

    Can you please redirect me to some tutorial? Or maybe you have the info ready to share here?

  • The topic ‘How to add a button in the visual post editing mode?’ is closed to new replies.