November Happy Hour will be moved to Thursday December 5th.

TinyMCE modifies links (renames) and generates redirects.

Vote:
 

Hello everyone.

My problem is related to TinyMCE When I add links they modify and replace them

when I add the link_/woman/shirt

it transforms it and it appears on the web_
href="/link/e4385d214413478c9d87216511071e94.aspx
(when clicking on the link it redirects me to: /woman/shirt)


How can I solve this so that in the html of the resulting web it is
/woman/shirt

it happens with both epi-link and link

Episerver.cms 11.20.14
Episerver.cms.TinyMCE  2.13.14

in the editor settings I have:

.AddPlugin(@"epi-link epi-image-editor autolink image link media code lists
             textcolor wordcount imagetools colorpicker textpattern template")
.Toolbar("cut copy paste | epi-link | image epi-image-editor | bold italic underline strikethrough forecolor backcolor | link ",
         "styleselect | fontsizeselect | fontselect | custom_styleselect",
         "alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | code | removeformat | template")
         

Can someone help me with this issue?

#299975
Apr 12, 2023 8:52
Vote:
 

How are you rendering the tinymce property in your view? copy/paste the code.

#299981
Apr 12, 2023 9:33
Vote:
 

There's an example in the dev docs for adding a "site relative link" option in TinyMCE: https://docs.developers.optimizely.com/content-management-system/v11.0.0-cms/docs/example-extending-hyperlink-editor-descriptor

Note the comment at the bottom of that page about setting the convert_urls setting to false, to prevent TinyMCE from converting the link. Maybe just that change will get you what you need?

#300028
Apr 12, 2023 23:01
* 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.