Page 1 of 1
Problem with TinyMCE internal links
Posted: Tue Sep 08, 2009 9:38 pm
by Alfonso
After Update to version 1.6 the tinyMCE editor does not wok propely. When I insert an internal link it is not shown as link in the editor (like the external links). It show something like this:
Test of {cms_selflink page='home' text='CMS'}–
Has anyone any idea how to correct this behaiviour?
I'm using now 1.6.5
bye
Alfonso
Re: Problem with TinyMCE internal links
Posted: Wed Sep 09, 2009 1:09 am
by calguy1000
That's a smarty tag, and IIRC that's what that plugin in the TinyMCE module is supposed to do.
When you apply or submit the page, and then view the page (or use the preview) smarty will recognize that tag, and execute the appropriate php code to render the link correctly.
Re: Problem with TinyMCE internal links
Posted: Wed Sep 09, 2009 3:14 am
by Jeff
It is a setting in the TinyMCE preferences, change it in on the TinyMCE admin page.
Re: Problem with TinyMCE internal links
Posted: Wed Sep 09, 2009 5:52 am
by Alfonso
calguy1000 wrote:
That's a smarty tag, and IIRC that's what that plugin in the TinyMCE module is supposed to do.
When you apply or submit the page, and then view the page (or use the preview) smarty will recognize that tag, and execute the appropriate php code to render the link correctly.
I know, but before i did the upgrade this smarty tag was shown as a underlined link
inside of the editor and not only on the page. I checked it with an older version on CMSms and it is shown as a underlined link and not as text. In the attached screenshot you see what I meen. I have inserted to links: one internal and one external. The external is underlined and showed as link, the internal not.
The correspondig HTML is:
Code: Select all
<p>This is an interna link to {cms_selflink page='home' text='home'}.
This is an external link to <a href="http://www.google.de">google</a>.</p>
ajprog wrote:
It is a setting in the TinyMCE preferences, change it in on the TinyMCE admin page.
Which setting? I did not found a setting for this in the TyniMCE admin page.
Re: Problem with TinyMCE internal links
Posted: Wed Sep 09, 2009 8:28 am
by scooper
Which setting? I did not found a setting for this in the TyniMCE admin page.
From the TinyMCE admin page ( Extensions -> TinyMCE WYSIWYG ) select the
'Advanced' tab.
Halfway down you'll see a select box for
'CMS-linker link-style'.
You want to use
'Style'.
If it already says
'Style' then change it to
'{cms_selflink}-style' and save, then change it back and re-save. That should make sure it's updated the preferences and will use the non-smarty style.
s.
Re: Problem with TinyMCE internal links
Posted: Thu Sep 10, 2009 9:57 am
by irish
Thanks Scooper, I always wondered about that also. I had checked the advanced settings and seen that 'Style' was already selected. Changing it and then changing it back got it working again.