# No Wrapper on elements inside Rich Text Editor

**URL:** <https://community.hubspot.com/t/no-wrapper-on-elements-inside-rich-text-editor/84168>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [June 27, 2023, 6:25am UTC](https://community.hubspot.com/t/no-wrapper-on-elements-inside-rich-text-editor/84168 "2023-06-27T06:25:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [June 27, 2023, 7:07am UTC](https://community.hubspot.com/t/no-wrapper-on-elements-inside-rich-text-editor/84168/2 "2023-06-27T07:07:32Z")

</div>

Hello [@mkt\_capptions](https://community.hubspot.com/t5/user/viewprofilepage/user-id/149971)  
I’ve checked all the possibilities what i can suggest is you can create a custom JavaScript function that runs when an element is inserted into the Rich Text Editor. This function can check if the element is being wrapped by the Rich Text Editor, and if it is, it can remove the wrapper.

---

_[View the full topic](https://community.hubspot.com/t/no-wrapper-on-elements-inside-rich-text-editor/84168)._
