How to inject macro html in editor

Modules are shown as "box" in the editor and converted into HTML at run time.

I'd like to know if it is possible to inject the HTML code directly to the editor so that we can edit it right away. It would be like small templates we can add where we want in the page being edited.

For instance, we have some documents which contain many table with the same format (same headers, same lines) and instead of copy/past i'd like to add a button or macro to add it dynamically at the cursor position. Then the user would fill in the blank cell with some text.

Thanks,

Guillaume

1 answer

It should be possible to extend the editor JavaScript, but I think you will habe to die yourself through the JavaScript oft the editor Plugin...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

319 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you