I use the ckeditor with the ckeditor module along with the video_filter. The video_filter generates code like [video:http://vimeo.com/10002754]
Everything is fine, after saving the node is displayed as desired. However, when I edit that node, ckeditor turns it into somethink like this:
[video:<a href="http://vimeo.com/10002754%5D" rel="nofollow">http://vimeo.com/10002754]</a>
Hence, I have to recreate all video links over and over again.
How can I disable that behavior? I don't want ckeditor to change the content that is loaded.
Comments
Comment #1
Tim-Erwin commentedComment #2
mkesicki commentedPlease write what text format and filters do you use for CKEditor's profile which change your tags.
Comment #3
Tim-Erwin commentedI'm using filtered html as text format with Video Filter, Convert to URL, WYSIWYG filter, HTML Purifier and a custom filter that processes some CSS.
However, I don't see how this helps with this issue because just creating an article works fine. The filters work as expected. Even when loading the node first everything is ok (I can see the source of the node) until ckeditor loads and converts the URLs.
Comment #4
mkesicki commented@Tim-Erwin,
thank you for information. We try check and fix this issue as soon as possible. I mark this ticket as a bug.
PS) Information about filter can be helpful during reproduction of issue and fix testing .
Comment #5
dczepierga commented@Tim-Erwin, do u try to reproduce this in last DEV version?
I try to do this by for me everything works fine...
Could u check "Security" section in CKEditor profile and write which filters u have "enabled" there?
Do u try to disable some filters in text format and then check?
Greetings
Comment #6
dczepierga commentedComment #7
Tim-Erwin commentedWell, I installed the dev version, same problem.
The filters I use in the respective text format are: WYSIWYG and HTML Purifier (with linkify disabled).
If I disable HTML Purifier indeed it works. So the question is: Why does it convert URLs into links if executed by ckeditor? For display, everything works fine: When I disable the video_filter, the URLs are left plain (with HTML Purifier enabled). Does ckeditor not respect the settings?
Comment #8
dczepierga commentedHi,
In text format u probably have Video filter above WYSIWYG and HTML Purifier... when u have disabled CKEditor module, the content is processed only when is showed on the page... when u have CKEditor module enabled it's run only security filters to filter content (so it's run WYSIWYG and HTML Purifier - Video Filter is not security filter so it's not executed here).
But i don't know one thing, why HTML Purifier change convert URL to html link... it must be sth with this module...
When page is displayed first is called Video Filter which convert shortag to video player, so in next step u have modified content which is filtered by HTML Purifier - when CKEditor module call security filters u have original content (with video shortag) in this step (not modified by Video filter) and this is main diffrence here.
I cannot do anything more to help u, because is sth with HTML Purifier module (which is only in DEV version and not have stable release)... when u disable in text format Video Filter u probably get on output this same result which u see in WYSIWYG.
Greetings
Comment #9
Tim-Erwin commentedNo, video filter comes after both WYSIWYG and Purifier. That's what I tried to describe in #7: When I disable the video filter, no links are created, the purifier does not create links.
The issue is: When called for page display, HTML Purifier behaves as expected. When call from ckeditor, it does not I changed the title to reflect that. That's hardly a bug I can file over there at HTML Purifier, is it? If you tell me what's the difference between how the purifier is called at page display vs for ckeditor, I could try asking the purifier folks.
Can I disable the security filters for ckeditor? I know, that sounds really bad for you but is acceptable at least temporarily in my situation. Disableing entierly, however, is an entierly different thing...
Comment #10
Tim-Erwin commentedAny update on this? I'd really like to use HTMLPurifier with ckeditor.
Comment #11
dczepierga commentedI try to reproduce this, but for me it's works without problem... May be it's related with configuration of WYSIWYG or Purifier filter?
Maybe try to do this with fresh Drupal installation, without special configuration of WYSIWYG nad Purifier...
CKEditor call WYSIWYG and Purifier filter on the same way as Drupal Core do this... so it shoudln't be any problems here.
It's possible to get any access to your website? If yes pls send me PM with all access data needed to login to administration panel...
Greetings
Comment #12
lucuhb commentedI have the same problem with code for video filter, as
[video:http://vimeo.com/10002754]Everything is fine, after saving the node is displayed as desired until I edit the node.
However, when I edit that node, (or when I desactive the reactive the editor before save the page), ckeditor turns it into somethink like this:
[video:<a href="http://vimeo.com/10002754%5D" data-cke-saved-href="http://vimeo.com/10002754%5D">http://vimeo.com/10002754]</a>Did you find a solution for this problem?
Comment #13
notzach commentedOkay, this is actually an issue with multiple editors using the wysiwyg module, I'm using tinymce and it's busted for me. I figured out a solution to this one. If you go use the "HTML Purifier Advanced" configuration options and set the
Linkifyoption toNoit won't automatically wrap urls with the<a>tag.Cheers!
Comment #14
lucuhb commentedOk, it works ! Thanks you!
Comment #15
jcisio commentedIn #7, it didn't work:
In #13 and #14 it worked:
I'm closing the issue unless we have more information.