Impossible to set Anchors in TinyMCE

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Guest

Impossible to set Anchors in TinyMCE

Post by Guest »

Hi,

I want to put down an empty anchor in one of my CMS pages. In other words, I want to have the following line in the HTML code of the page:

This will then allow me to jump to this particular spot of the page using a link that points to "page.html#anchor_name".

Problem:
In TinyMCE, I cannot create such an empty anchor. If I click the "anchor" button, nothing is inserted. I can, however, mark a portion of text and then click the "anchor" button. This will make an anchor around the marked text:
marked text
which is not what I want.

Worse:
If I go to HTML edit mode and I insert an empty anchor by hand, then TinyMCE thinks that I wanted to add a link, and moves the tag to the end of the text which follows the anchor:
Blabla bla bla blablabla

is transformed into
Blabla bla bla blablabla


Does anyone have a solution to this problem? Is this a TinyMCE bug?

Thanks a lot
E.P.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Impossible to set Anchors in TinyMCE

Post by Ted »

*sigh* Yet another WYSIWYG related bug...  I really don't have any answers for these these days.  I think people are trying to the WYSIWYG beyond it's purpose.  A lot of this will go away when we have multiple content blocks and don't have to edit every bit of html on a page.  You might want to look on tinymce's site to see if there is a quick answer for this, though I seriously doubt it.
Guest

Re: Impossible to set Anchors in TinyMCE

Post by Guest »

Wishy,

thanks a lot for answering so quickly to my posts.

I did not realize that one can switch off WYSIWYG
Guest

Re: Impossible to set Anchors in TinyMCE

Post by Guest »

Wishy,

thanks a lot for answering so quickly to my posts.

I did not realize that one can switch off WYSIWYG and edit the content by hand.
That is much more useful!

Have a nice week-end,
E.P.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Impossible to set Anchors in TinyMCE

Post by Greg »

FCKEditor uploaded to the wiki by megabob3 seems to handle this properly.

The same old problem, as the WYSIWYG editors are upgraded, which is the best (or which has the least problems)?
Greg
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Impossible to set Anchors in TinyMCE

Post by Ted »

Someday when we have automated module downloading/installation, I won't include any WYSIWYG by default.  Then it'll be up to the user to figure out which one is best for them...
iNSiPiD

Re: Impossible to set Anchors in TinyMCE

Post by iNSiPiD »

At this stage I'd settle for one which didn't feel the need to reformat all my #$%!ing code. I'd hoped FCKeditor was going to be the one but have just come to realise that it won't even allow me to include a standard plugin call without messing with it.

{cms_module module="LinkBlog" allow_search="true"} becomes {cms_module module="LinkBlog" allow_search="true"} and hence doesn't work.

I've changed the FCKConfig.FormatSource parameter to false in fckconfig.js and cleared my browser cache but it seems to have made no difference.

I don't think the solution is to let people choose their own (although that option could still exist). I think the best thing to do is to pull apart something like FCKeditor, strip it back to its essentials and remove everything but the ability to or set . A decent stylesheet would take care of the rest.

How are others dealing with this??
Alex_Leipzig

Re: Impossible to set Anchors in TinyMCE

Post by Alex_Leipzig »

In FCK Editor I use ' instead of ".
If you want a stripped down editor, have a look at widgEditor - there is also a CMSms module for it, I think.
Locked

Return to “CMSMS Core”