When I add "bold words" to the editor with the "b" button

Add a text to the editor through a button of its toolbar: the button opens the format, the text is typed, the button closes it again. The buttons that wrap a text: "b", "i", "b-quote", "del", "code".

Examples

When I add "bold words" to the editor with the "b" button
And I add "a quoted line" to the editor with the "b-quote" button
When we add "important" to the editor with the "i" button
When I add "wp-config.php" to the editor with the "code" button
And I add "no longer true" to the editor with the "del" button

Pattern

When(/^(I |we )*add "([^"]*)" to the editor with the "([^"]*)" button$/, …)

Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.