# How to write plugin

**URL:** <https://forum.collaboraonline.com/t/how-to-write-plugin/3021>\
**Category:** Development\
**Created:** [September 30, 2024, 12:48am UTC](https://forum.collaboraonline.com/t/how-to-write-plugin/3021 "2024-09-30T00:48:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![langziyang](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/langziyang/32/1347_2.png) [@langziyang](https://forum.collaboraonline.com/u/langziyang)\
**Post date:** [September 30, 2024, 12:48am UTC](https://forum.collaboraonline.com/t/how-to-write-plugin/3021/1 "2024-09-30T00:48:20Z")

</div>

for example: i want create context menus,when i click it,i will choose image on my server,mean i neet use network request api to get images list,then insert is to cell or word.

or: i want insert ole to cell or word,when custome click ole,i want do something

---

<div class="post-metadata">

**Author:** ![vmiklos](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/vmiklos/32/787_2.png) [@vmiklos](https://forum.collaboraonline.com/u/vmiklos)\
**Post date:** [September 30, 2024, 6:28am UTC](https://forum.collaboraonline.com/t/how-to-write-plugin/3021/2 "2024-09-30T06:28:43Z")

</div>

Please see [PostMessage API — SDK https://sdk.collaboraonline.com/ documentation](https://sdk.collaboraonline.com/docs/postmessage_api.html), maybe the closest that is available as-is is the `Insert_Button` postmessage API.

---

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [October 8, 2024, 6:48am UTC](https://forum.collaboraonline.com/t/how-to-write-plugin/3021/3 "2024-10-08T06:48:08Z")

</div>

Closed on October 8, 2024, 6:48am UTC


