Page 1 of 1

Impossible to set Anchors in TinyMCE

Posted: Sat Mar 12, 2005 12:29 pm
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.

Re: Impossible to set Anchors in TinyMCE

Posted: Sat Mar 12, 2005 1:32 pm
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.

Re: Impossible to set Anchors in TinyMCE

Posted: Sat Mar 12, 2005 2:13 pm
by Guest
Wishy,

thanks a lot for answering so quickly to my posts.

I did not realize that one can switch off WYSIWYG

Re: Impossible to set Anchors in TinyMCE

Posted: Sat Mar 12, 2005 2:15 pm
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.

Re: Impossible to set Anchors in TinyMCE

Posted: Sat Mar 12, 2005 4:15 pm
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)?

Re: Impossible to set Anchors in TinyMCE

Posted: Sat Mar 12, 2005 4:24 pm
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...

Re: Impossible to set Anchors in TinyMCE

Posted: Fri May 27, 2005 6:06 am
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??

Re: Impossible to set Anchors in TinyMCE

Posted: Fri May 27, 2005 7:21 am
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.