cancel
Showing results for 
Search instead for 
Did you mean: 

anchor tags dropped when saving a page

anchor tags dropped when saving a page

I'm trying to add an A tag in my privacy policy but when i save the doc it keeps deleting the A tag.

 

<A NAME="collection"></a> I have put this in front of the <p> and right before the actual statement:

 

<p class="text2"><span style="color: #9d1309;"><strong>COLLECTION, USE AND DISCLOSURE OF PERSONAL INFORMATION</strong></span><br />

 

As soon as I have the doc, it strips it right back out.

 

I need to create an anchor to the information throughout the doc.

 

Yes I have the <A HREF> tag elsewhere and its staying just fine.

 

5 REPLIES 5

Re: anchor tags dropped when saving a page

The Magento WYSISYG editor will automatically strip empty HTML tags. Try adding content or &nbsp.

 


Freelance Web Developer - Graphic Designer - SEO Analyst
Conor Rhys Tomkins

Re: anchor tags dropped when saving a page

Its stripping out the "name" portion of the anchor tag as well.  

Re: anchor tags dropped when saving a page

It's the standard operating feature of the TinyMCE WYSIWYG editor to strip out all potentially unsafe html tags like iframe, script, etc.

 

Acquaint yourself with Alan Storm's website as it has a lot of interesting analysis and programming dealing with making Magento function. Case in point, extension of TinyMCE to support HTML 5, which can also be used to support the html tags you wish to support, including plain old anchor tags (not links).

 

Personally, I just ditch TinyMCE by disabling WYSIWYG editing and create all my CMS content in either the TextPad programming editor, or for more complex stuff, DreamWeaver.

Re: anchor tags dropped when saving a page

I understand what your saying, but it still irritates.

 

Re: anchor tags dropped when saving a page

HI,

 

Did you try copy/pasting your code in the editor, using the small buttons (Paste from Word, Paste from Textnote) - I have sometimes been able to this, without loosing code.

 

Does this make any difference for you ?

 

-- Best regards --
Kent Christiansen | Magento Certified Solution Specialist