# Issue with pasting code turning into personnalization token

**URL:** <https://community.hubspot.com/t/issue-with-pasting-code-turning-into-personnalization-token/74540>\
**Category:** CMS Development\
**Created:** [February 6, 2023, 1:20pm UTC](https://community.hubspot.com/t/issue-with-pasting-code-turning-into-personnalization-token/74540 "2023-02-06T13:20:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YeSpaniard](https://avatars.discourse-cdn.com/v4/letter/y/a88e57/32.png) [@YeSpaniard](https://community.hubspot.com/u/YeSpaniard)\
**Post date:** [February 6, 2023, 1:20pm UTC](https://community.hubspot.com/t/issue-with-pasting-code-turning-into-personnalization-token/74540/1 "2023-02-06T13:20:00Z")

</div>

Hi,

A little glitch is giving me a massive headache here. I am trying to copy a HubL code {{ module.something.etc }} into a Rich text field. When copying it converts it into {{personalization\_token(‘module.something.etc’), ‘undefined’}}.

If I click Publish the code works fine.

If I click Publish and then come back to edit, it won’t work. Same if I go in “View code”.

Any idea on how to cope with this ?

Thank you very much for your help,

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [February 7, 2023, 10:48am UTC](https://community.hubspot.com/t/issue-with-pasting-code-turning-into-personnalization-token/74540/2 "2023-02-07T10:48:58Z")

</div>

Hi @YeSpaniard,

it’s technically not possible to paste modules into rich-text fields.  
What do you want to achieve?

Personally I always recommend you to create a whole custom module with your desired functionality.

best,

Anton

---

<div class="post-metadata">

**Author:** ![YeSpaniard](https://avatars.discourse-cdn.com/v4/letter/y/a88e57/32.png) [@YeSpaniard](https://community.hubspot.com/u/YeSpaniard)\
**Post date:** [February 7, 2023, 10:55am UTC](https://community.hubspot.com/t/issue-with-pasting-code-turning-into-personnalization-token/74540/3 "2023-02-07T10:55:07Z")

</div>

Hi Anton,

Thanks for getting back to me.

Actually I can copy it and make it work but I cannot edit it easily after it’s published (otherwise I’d have to delete the “personnalizatino token” line).

The idea is to create tooltip module that I could insert wherever I want in a RTF module. So basically insert a user-editable HTML snippet, with a simple line/shortcode.

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [February 7, 2023, 2:25pm UTC](https://community.hubspot.com/t/issue-with-pasting-code-turning-into-personnalization-token/74540/4 "2023-02-07T14:25:18Z")

</div>

Gotcha!

My personal approach would be a custom module with a RTF and a dedicated field for the tooltip. Since it’s easier for the user and isn’t so error prone.

A custom module could look like this:

```lia-code-sample
<article title="{{ module.tooltip }}">
{{ module.richtext_field }}
</article>

```

And here are the fields

 ![Anton_0-1675779753543.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b225c56e83ef86d40b4035130a6274a094b5a137.png)

If you want more flexibility you can create custom shortcodes like in WordPress. @Teun has created a [deepdive video](https://www.linkedin.com/posts/teun-rutten-500a2b90_hubspottipsandtricks-hubspotadvocate-hubspot-activity-7014250003913179136-EFJD?utm_source=share&utm_medium=member_desktop) how to create such.

best,

Anton
