World is now on Opti ID! Learn more

Custom webcomponents inside TinyMCE WYSIWYG

Vote:
 

Hi,

I'm wondering if someone would have a solution. I'm trying to combine the WYSIWYG in Optimizely and a library of custom web-components.

Inside the code option, the code is properly read


And if I inspect the CMS edition page, it's properly rendered in html. But the CMS doesn't seem to recognize the webcomponent.



In the TinyMCE config file, I've added content JS and extended_valid_elements as well as ContentCss in order to properly load it.

Anyone knows how to do this?

#339427
Jun 16, 2025 23:22
Vote:
 

Hi!

In your CMS and Rich Text Editor I would guess our custom scripts/components are not loaded. If you would to preview your block/page does it work then?

Does it need to work in Rich Text Editor?

#339428
Jun 17, 2025 7:28
Vote:
 

Yeah, that would be our goal. Idealy something that works like the default link, but otherwise going through code is fine.

In the best of worlds, something that works like link, that opens up a config pop-up, would be the best

#339445
Edited, Jun 17, 2025 14:19
Vote:
 
#339449
Jun 17, 2025 16:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.