How to hide inserted URL in WYSIWYG editor (TinyMCE)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
nexious
New Member
New Member
Posts: 3
Joined: Mon May 04, 2015 6:02 am

How to hide inserted URL in WYSIWYG editor (TinyMCE)

Post by nexious »

I am in the process of converting an older CMSMS site (1.9.1) to the latest version. In the new version, when editing pages using the WYSIWYG editor (TinyMCE or MicroTiny), the hyperlink appears in parenthesis next to the hyperlinked text. When using the cms_selflink style link, the entire smarty tag appears in parenthesis. See illustration below:

Image

Since this site will be maintained by an end user and the URLs can get quite long and numerous, this creates a messy editor page. How can I disable the output of the URL in parenthesis in this editor?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: How to hide inserted URL in WYSIWYG editor (TinyMCE)

Post by velden »

This behavior is probably related to the page template (Simplex?) that's used for the specific page(s).

Try adding this css to the stylesheet of the template:

Code: Select all

#tinymce a:link::after {
    content: none;
}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to hide inserted URL in WYSIWYG editor (TinyMCE)

Post by Dr.CSS »

Are you sure it isn't just MicroTiny as I just tested it in 1.12 but used tinyMCE and I don't see that...
nexious
New Member
New Member
Posts: 3
Joined: Mon May 04, 2015 6:02 am

Re: How to hide inserted URL in WYSIWYG editor (TinyMCE)

Post by nexious »

Hi, you are right it was related to the print CSS stylesheet of Simplex. For some reason when I check the TinyMCE option to "Include only screen CSS", none of the template styles are included even if the stylesheets are specified as screen. Thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to hide inserted URL in WYSIWYG editor (TinyMCE)

Post by Dr.CSS »

That would be because they all use the 'form' and not the other tab to set 'screen', I think, but glad it works...
Post Reply

Return to “Modules/Add-Ons”