Dear Friends,

I'm finishing a new Drupal website and one of the problems I can't fix is that on edit mode a <a> tag desapears, so each time I want to edit something, I must view the source code, copy to notepad, edit, and after that open drupal in edit mode and paste all the code... It is not nice...

Here you have the code:

<div class="product_box">
<div id="product_frame_1" class="product_frame"><img src="themes/theme433/images/nylon_thumb.jpg" alt="abrasivos nylon" width="273" height="64"></div>
<a href="#" id="botao-slide_1" class="botao-slide"></a></div>

This is the line of code that desapears:
<a href="#" id="botao-slide_1" class="botao-slide"></a>

I'm using Format content predefined with all tags allowed, so not filtering anything.

Do you know what can be the problem?

Thank you
David D.

Comments

Anthony Pero’s picture

Are you using Full HTML, or did you add a bunch of tags to the HTML Filter? If you are using the HTML Filter, even if you've allowed every tag known to man, it will still strip out your anchor tag because it contains ids and classes. Make sure you are on Full HTML, or No Filter at all.

Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/

drtduarte’s picture

Hello there,

Thanks for your reply.

Well the problem is not related with filtering as I'm using no filter at all, and I can insert manually the code.
The problem is related with the editor, as if I'm on image mode editing I have all the code, as soon as I change to source code editing mode I loose the code, that's why if I save the content I loose the code definitely...

So for some reason the editor cannot open that code in source code editing mode...

Yes, I disabled the CKEditor, and this way I don't have any problem, but I would like to be able to use an WYSIWYG editor.
Any idea?

christopher james francis rodgers’s picture

Thee 'issues' que for your project:

http://drupal.org/project/issues/ckeditor

The 'home' page for your project:

http://drupal.org/project/ckeditor

===

If you have a question about or a problem with
a specific module (a 'project'),
or a specific theme (also a 'project'),
the issue que for that project is the closest you can get
to true live help of an unlimited nature
and is in fact the recommended way to get help at drupal.org
for module-specific or theme-specific questions.

  1. Search first. [_Search_]

    The best of all possible searches
    for Drupal Module-specific or Theme-specific
    issues/ questions/ problems/ suggestions/
    or support requests, ...

    Search from any of a project's 'issues' pages,
    (or from the specific project's 'home' page)
    and that will limit your search to all and only
    the issues concerning that specific project.

  2. Then, if you do not find your answer, <_Create_new_Issue_>

    Assuming you did Not find whay you were looking for...

    Click a project issue page's
    link: 'Create new issue'; and for 'Category',
    if in doubt, specify 'Support request'.

===

For more details on getting help on specific projects, see...

"Get the Fastest Answers to Module-Specific
or Theme-Specific Issues at Drupal.org
- How to"
http://drupal.org/node/1478010

===

Additional drupal.org 'general' posting recommendations

Tips for posting to the Drupal forums
http://drupal.org/forum-posting

.
.
.
: o )


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *

lomo’s picture

Maybe it's a WYSIWYG editor that removes the empty tag-set?

<a href="#" id="botao-slide_1" class="botao-slide">PUT SOMETHING IN HERE!!!!</a>

Hope that helps. ;-)

See you at the Drupalcon!

drtduarte’s picture

Hello LoMo,

You were right, I put just a space   and now it doesn't remove the code anymore.

Thanks a lot,

Regards,
David