Log in or register to post comments
Last post
ckeditor redoing hyperlinks entered in source view
I am using CKEditor with Drupal 7.

In the source view of CKEditor I am trying to enter this:
<a href="#">
   <img src="anImage.jpg" alt="An Image" />
   <h4>A Header</h4>   
   <p>Some Text</p>
</a>   

Ckeditor then changes it to this the next time the page is edited:
<p>
   <a href="#"><img alt="An Image" src="anImage.jpg" /> </a>
</p>
<h4>
   <a href="#">A Header</a>
</h4>
<p>
   <a href="#">Some Text</a>
</p>

That affects the styling and accessibility (tabbing three times instead of once). How do I configure CKEditor to not do that?

Thanks!
Jon
Re: ckeditor redoing hyperlinks entered in source view
Hi,
which module and version for CKEditor in for Drupal do you use ?
Which Drupal version do you have installed ?
Re: ckeditor redoing hyperlinks entered in source view
I am using Drupal 7.9 with the CKEditor module version 7.x-1.6.

I realized that the html that I am trying to enter is invalid due to using block elements within an inline element (in this case styled as a block element with CSS). However, is there a way to have CKEditor not validate code entered in the source view?

Jon
Re: ckeditor redoing hyperlinks entered in source view
jonh wrote:. However, is there a way to have CKEditor not validate code entered in the source view?

No , there is no such option. CKEditor will always validate html code.
Re: ckeditor redoing hyperlinks entered in source view
dididada wrote:is there a way to have CKEditor not validate code entered in the source view?

No , I don't think that there is a way to turn validation off. But if you turn your validation off in source mode, you will get something which behaves like normal textarea.