Look at this
There are two wrong things:
1) Shown <span> tags
2) Quotes are not decoded
Yes, I hacked geshi.php
Yes, I added <span> to allowed tags list
What I missed?
| Comment | File | Size | Author |
|---|---|---|---|
| php_geshi.jpg | 78.58 KB | volocuga |
Look at this
There are two wrong things:
1) Shown <span> tags
2) Quotes are not decoded
Yes, I hacked geshi.php
Yes, I added <span> to allowed tags list
What I missed?
| Comment | File | Size | Author |
|---|---|---|---|
| php_geshi.jpg | 78.58 KB | volocuga |
Comments
Comment #1
Slovak commentedYou shouldn't need to add
<span>to allowed tags. Check your steps based on http://peterpetrik.com/blog/ckeditor-and-geshi-filterComment #2
volocuga commentedWait. In the mentioned article written the following:
In other words I don't need this module AT ALL, right? It's funny, because I removed previously installed Ckeditor to install WYSIWYG module, which is required for WYSIWYG - GeSHi bridge module.
Comment #3
aaron stanush commentedI am also having this issue. I am using the method suggested on the project page (WYSIWYG + CKEditor library), same as volocuga.
In the WYSIWYG, I've pasted the following code:
But it gets output like this:
So you can see, the
<span>tags are not being filtered out, despite adding the<span>tag to my list of allowed HTML tags in the input filter.Comment #4
Jan Brinkmann commentedI had the same strange behaviour. After hours of research I finally solved it by downgrading CKeditor from 3.4 to 3.1 . Probably a more recent version works too, but I tried to use the version which was the lastest release at the time "Peter Petrik" wrote the article. It works fine.
Comment #5
aren cambre commentedPeter Petrik is slovak on drupal.org.
Comment #6
Jan Brinkmann commentedOk, sorry. Didn't knew that. Sadly, I have to revert my statement. Downgrading to 3.1 doesn't completely resolve this issue. Sorry :/.
Comment #7
Slovak commentedUsing the WYSIWYG module may be the problem. The approach I outlined involves only CKeditor and GeSHi.
Comment #8
Jan Brinkmann commentedYes, I followed your tutorial step by step and the WYSIWYG API module is not installed. I also didn't removed it or something, I never installed it. The main problem is, since I downgraded to 3.1, it doesn't happen all the time. I'm currently trying to find a way to reproduce this behavior. I have a feeling it is somehow related to newlines or special characters. I don't really know in what cases the ckeditor produces such tags. Any hint is therefor appreciated :-) However, thank you for the tutorial anyway. It works really well beside the span-tag thing.
Comment #9
aren cambre commentedMarking as fixed since this doesn't really relate to the WYSIWYG - GeSHi bridgemodule.
Comment #10
Slovak commentedJan,
feel free to contact me directly and we can take a look at what may be causing this issue for you.
Peter...
Comment #12
Slovak commentedFor anyone that pulls this up searching for a solution - this seems to be an issue with the recent versions of CKEditor (3.4). If you downgrade to version 3.1 the span tags will not show up.
I've even asked on the CKEditor forums, but no response thus far.
Comment #13
Slovak commentedNo response from the CKEditor forums so far. The newest version 3.4.1 changes the above mentioned tags to
<span style="display: none;"> </span>As I posted in my update, the working solution is to stay with version 3.1 for now. The newer versions also break the ckeditor module features such as inserting the Drupal teaser break.