I'm having some issues with ckeditor changing what I write.
This:
Turned into this:
How can I get ckeditor to stop doing this? Is there a config value to set? Thanks a bunch! Awaiting a reply.
This:
<p> <a href='{exp:download_file:link file="/panels/tank/manuals/Church's Chicken manual.pdf" template="/index.php/panels/" }'>Installation for Church's Chicken</a></p>
Turned into this:
<p> <a data-cke-saved-href="{exp:download_file:link file=&quot;/panels/tank/manuals/Church" href="%7Bexp:download_file:link%20file=%22/panels/tank/manuals/Church" s="" tank="" installation="" manual.pdf"="" template="/index.php/panels/" }'="">tank Installation for Church's Chicken</p>
How can I get ckeditor to stop doing this? Is there a config value to set? Thanks a bunch! Awaiting a reply.
Re: <a data-cke-saved-href= gets put in my links. Why?
and when switching to wysiwyg mode and then looking at the content with getData() it gets turned into
with the unwelcome "data-cke-saved-href" attribute and a MISSING closing tag. Has anyone any idea what is happening?
Re: <a data-cke-saved-href= gets put in my links. Why?
Re: <a data-cke-saved-href= gets put in my links. Why?
the browsers might change the href of a link (for example resolve a relative link and turn it into absolute), so CKEditor inserts that internal data-cke- attribute with the desired value but that won't be visible unless you use a debugging tool or try to grab manually the contents of the iframe.
In the case of the first message, it has a first syntax error as it's using a single quote inside an attribute delimited with single quotes and even after that, as the value of the href is quite strange it might trigger some unknown bug in CKEditor.
Re: <a data-cke-saved-href= gets put in my links. Why?
Thanks!!
Re: <a data-cke-saved-href= gets put in my links. Why?
This is the source code when I insert an image before I save:
<img alt="" src="/sites/default/files/creed.png" style="width: 300px; height: 52px;" />
Then this is what is displayed after save instead of the image:
<img alt="" data-cke-saved-src="/sites/default/files/creed2.png" src="/sites/default/files/creed2.png" 285px;="" height:="" 191px;\\\\\\\\\\\\\\\\"="">
And then this is the altered source code:
<p><img alt="" data-cke-saved-src="/sites/default/files/creed2.png" src="/sites/default/files/creed2.png" 285px;="" height:="" 191px;\\\\\\\\\\\\\\\\"=""></p>
Any ideas?
Re: <a data-cke-saved-href= gets put in my links. Why?
And this problem happens with all the browsers?
Re: <a data-cke-saved-href= gets put in my links. Why?
Re: <a data-cke-saved-href= gets put in my links. Why?
I'm still having this issue. Any ideas? I have one site running with 3.6.1 and one with 3.6.2 and they are both experiencing this problem.
Thanks.
Re: <a data-cke-saved-href= gets put in my links. Why?
Re: <a data-cke-saved-href= gets put in my links. Why?
Also, I am getting the value not by grabbing it in the iFrame myself, but with getData(). I will explore the quote thing and get back to you.
Also, my main problem is the disappearance of the closing tag </a>, the data-cke-saved-href is annoying but not at all as much as the closing tag problem.
Re: <a data-cke-saved-href= gets put in my links. Why?
In my case, here is the link
I don't see any obvious syntax problem.
EDIT: this is actually the exact value I setData() my CKEditor to (I am not in fullpage mode).
Re: <a data-cke-saved-href= gets put in my links. Why?
Re: <a data-cke-saved-href= gets put in my links. Why?
Re: <a data-cke-saved-href= gets put in my links. Why?
I've tried to paste that code in Source mode at ckeditor.com/demo and after switching to design and back to source I see the same code (except for the formatting paragraph).
Are you sure that it isn't a problem with your server or your CMS?
The = at the href isn't strange, any page with parameters will have those assignments and they must not be encoded.
Re: <a data-cke-saved-href= gets put in my links. Why?
yes,'=' must not be encoded if it is in the query string part of the URL, but if I read the standard correctly, it must if it is in the location part.
I will try to reproduce the problem with external version of ckeditor and post back here after.
Re: <a data-cke-saved-href= gets put in my links. Why?
enzo90910, what patch were
enzo90910, what patch were you applying that caused the problem? I've recently noticed this problem happening in some pages in my site as well.
If you could let me know what patch you applied that triggered this I would really appreciate it.
Thanks,
Pablo
I'm having this same problem.
I'm having this same problem. The saved link looks like:
<a _cke_saved_href="http://yahoo.com" href="javascript:void(0)/*241*/">
When I then bring the text block back into ckeditor, the _cke_safved_href attribute is indeed gone, but that leaves the links as javacript:void(0). Which really isn't what is wanted. Needless to say, this is causing some consternation with my users whose links don't work.
This happened after I upgraded to ckeditor4 from ckeditor3.
I had this problem too
I was getting a data-cke-saved-href attribute added to a link created in my plugin, which was wasn't changing when I changed my link later on, and then overwriting my changes, so I just removed it every time I updated my link with:
element.removeAttribute('data-cke-saved-href');