# SwiperJS inside Powerful Rich Text field

**URL:** <https://forum.finsweet.com/t/swiperjs-inside-powerful-rich-text-field/2926>\
**Category:** Attributes\
**Created:** [May 20, 2024, 6:52am UTC](https://forum.finsweet.com/t/swiperjs-inside-powerful-rich-text-field/2926 "2024-05-20T06:52:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_theclevernod](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/_theclevernod/32/1051_2.png) [@\_theclevernod](https://forum.finsweet.com/u/_theclevernod)\
**Post date:** [May 20, 2024, 6:52am UTC](https://forum.finsweet.com/t/swiperjs-inside-powerful-rich-text-field/2926/1 "2024-05-20T06:52:35Z")

</div>

Has anyone tried adding a Swiper inside a Powerful Rich Text Field? I’m trying to use SwiperJS (the library I use for all sliders I build), however although the slider functionality works OUTSIDE of the rich text field, the slider loses functionality when placed inside the rich text field using Finsweets attributes ([Powerful Rich Text - Add HTML and components to Webflow Rich Text Block](https://finsweet.com/attributes/powerful-rich-text)).

Any ideas?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [May 20, 2024, 4:47pm UTC](https://forum.finsweet.com/t/swiperjs-inside-powerful-rich-text-field/2926/2 "2024-05-20T16:47:06Z")

</div>

hey @_theclevernod! We might need to wait until Powerful Rich text loads and injects the slider component before initializing SwiperJS.

Something like this should do the trick

```js
<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'richtext',
    (textInstances) => {
      console.log('richtext Successfully loaded!');

	  // Add SwiperJS confing and init code here

    },
  ]);
</script>

```

If this doesn’t work please share a live link and I’ll take a look 🙂
