Hi,
I added an attribute named hqid to hyperlink, such as <a href="#" hqid="999">test</a>, when I copied the link on ckeditor and pasted, the attribute hqid lost.
Any idea I can keep the attribute when copy link?
Thanks,
Kohyea
Hi,
I added an attribute named hqid to hyperlink, such as <a href="#" hqid="999">test</a>, when I copied the link on ckeditor and pasted, the attribute hqid lost.
Any idea I can keep the attribute when copy link?
Thanks,
Kohyea
You need to configure the
You need to configure the Advanced Content Filter. Either add styles/attrs/classes/elements you need using config.extraAllowedContent or reconfigure entire ACF (or even disable it) using config.allowedContent.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hi reinmar,
Hi reinmar,
Thanks for your reply. the setting config.extraAllowedContent works perfect. but I just find this setting does not work on Firefox.
You can test the same code, open file /ckeditor/sample/datefiltering.html, then chagne editor2 as:
CKEDITOR.replace( 'editor2', {
extraAllowedContent:
'a[!href,hqid]'
} );
It works for me on FF. I
It works for me on FF. I checked this in datafiltering.html and in replacebycode.html.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hello reinmar,
Hello reinmar,
We don't want to upgrade to CKEDITOR 4.0, if there is any idea to fix this?
Thanks,
Kohyea
Is there any issue? I wrote
Is there any issue? I wrote that it works for me and you didn't reply with more details so I could reproduce this. I don't even know now on which version you've got this issue.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Sorry, I said we are using 4
Sorry, I said we are using 4.0, is there any idea to fix it if we don't want to upgrade to 4.1
I can neither reproduce this
I can neither reproduce this issue on 4.0 nor on 4.1. You still haven't given any details about this "issue", so I can't answer your question.
Edit: after few tries I reproduced this on FF. And nope - you cannot fix this and we cannot fix this too. FF is stripping incorrect attributes when copying data to clipboard. Use correct data-* attributes and it will be fine AFAIK.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+