# Approach to embedding excel using javascript

**URL:** <https://meta.discourse.org/t/approach-to-embedding-excel-using-javascript/254913>\
**Category:** Development\
**Created:** [February 12, 2023, 5:26pm UTC](https://meta.discourse.org/t/approach-to-embedding-excel-using-javascript/254913 "2023-02-12T17:26:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bquast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bquast/32/289307_2.png) [@bquast](https://meta.discourse.org/u/bquast)\
**Post date:** [February 12, 2023, 5:26pm UTC](https://meta.discourse.org/t/approach-to-embedding-excel-using-javascript/254913/1 "2023-02-12T17:26:43Z")

</div>

I would like my members to be able to add an embedded Excel spreadsheet to their posts. This can be accomplished with javascript, e.g.:

```plaintext
<div id="myExcelDiv" style="width: 402px; height: 346px"></div>
<script type="text/javascript" src="https://onedrive.live.com/embed?resid=6C685993F809A9F8%212757&authkey=%21AABR6KgqMF_ImYs&em=3&wdDivId=%22myExcelDiv%22&wdDownloadButton=1&wdAllowInteractivity=0&wdAllowTyping=1"></script>

```

But - understandably - this is removed from any post, what would be an approach to make something like this possible?

**EDIT** Bonus points for a solution that only allows javascript from e.g. [https://onedrivelive.com/embed](https://onedrivelive.com/embed) or

---

_[View the full topic](https://meta.discourse.org/t/approach-to-embedding-excel-using-javascript/254913)._
