Jump to:
| Project: | Wysiwyg syntaxhighlighter integration |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Steps to reproduce:
1. Click "Insert code using Syntaxhighlighter"
2. Type anything with new line it, for example:
test1
test2
3. Click Insert.
4. TinyMCE is displaying text correctly (two lines, preformatter).
5. Clicking node Preview button makes this text replaced to the following: {syntaxhighlighter brush...}test1 test2{/...} and on the preview it is displayed in one line.
Environment:
Drupal 6.15
Wysiwyg 6.x-2.0 with TinyMCE 3.3
Wysiwyg Pre Element Fix 6.x-1.0-beta1 (correctly installed - it corrects enter key)
Wysiwyg SyntaxHighlighter Plugin 6.x-1.2 with syntaxhighlighter_2.1.364
Tested in Chrome 4.0.249.78 (36714) and FireFox 3.0.13
Site: http://www.alexatnet.com/ (example is on the front page)
Contact me if you need more testing.
Thanks,
Alex
Comments
#1
Problem is solved by unchecking "Remove linebreaks" in TinyMCE profile at /admin/settings/wysiwyg
However, it would be nice for the plugin to work regardless of the state of this option.
Thanks,
Alex
#2
I was having this issue and in addition linebreaks were being lost in all tinymce text areas. The solutions was:
1. Unchecking "Remove Line Breaks" and
2. Checking "Convert line breaks" in the corresponding "Input Format" profile.
3. This resolved the issue of merging all lines, and the "{syntaxhighlighter brush...} ..." issue. But still any code entered in the SyntexHighlighter was getting joined to a single line(http://drupal.org/node/814340#comment-3291580).
4. Finally, checking "Preformatted" in "Cleanup and output" under "admin/settings/wysiwyg/" for the corresponding profile resolved the issue.
#3
Works for me! :)
Just to clarify, point 1. is changed within the WYSWIYG settings along with 4.
#4
I'm having a very similar problem to this. I've tried the instructions above without any success.
When I insert the code using tinyMCE it looks properly formatted in the editor, when I hit save and view the page it all ends up in one long line. When I go back and edit it, the text has lost it's formatting and again is in one long line.
If I write some code within a tag without using tinyMCE, when it's saved it works perfectly. However if I then go back and switch to tinyMCE the tag and anything within it is replaced with with a single space ( ).
Any suggestions? I'm pulling my hair out with this!
#5
I have the most recent version of all modules installed, done the whole tricks listed above but still have the problem of all the lines joining together after disabling the rich-text or submitting the page back.
I think the problem is on the way this module converts pre blocks into syntaxhighlter ones.
#6
I have this problem - when I click Submit in Node/Edit - all code roll to one line
This not solve my problem - still have "one line" of code (only code - rest of text is correct)
-------------------------------------------------------------------
1. Unchecking "Remove Line Breaks" and
2. Checking "Convert line breaks" in the corresponding "Input Format" profile.
3. This resolved the issue of merging all lines, and the "{syntaxhighlighter brush...} ..." issue. But still any code entered in the SyntexHighlighter was getting joined to a single line(http://drupal.org/node/814340#comment-3291580).
4. Finally, checking "Preformatted" in "Cleanup and output" under "admin/settings/wysiwyg/" for the corresponding profile resolved the issue.
-------------------------------------------------------------------
#7
same problem here ,no solution?
#8
same to me
#9
Hey there,
I seem to be having the same issue as the one described here. Most works well, but the "single line effect" persists.
You can see my set up for the filter configuration, rearrange and the cleanupt and output from the WYSIWYG profile here:
http://imgur.com/a/w4BeN
You can see the editor and the result in this screenshot:
http://i.imgur.com/7pA8f.jpg
Can I get some help? I think i might be close to fix the issue!
Thanx
Versions:
Drupal 6.22
Wysiwyg 6.x-2.4
TinyMCE 3.4.6
WYSIWYG Image upload 6.x-2.9
Syntax highlighter 6.x-1.26 (2.0 dev did not work for me)
Wysiwyg SyntaxHighlighter Plugin 6.x-1.2
Wysiwyg Pre Element Fix 6.x-1.0
#10
I woke up today and did this:
1- admin/settings/filters > full html: unchecked html corrector, html filter and linebreak converter.
2- admin/settings/wysiwyg/profile > full html: leave checked verify html and convert font tag to styles.
I guess the code was being filtered twice, and it removed the
tag, or at least that is what I guessed. Now my parragrafs are right, but the code inside the highlighter is in one single line.
Halp?
#11
Hi all,
just a brief note to let you know that I'm back from a long hiatus and will tackle these issues.
Stay tuned; I should have updates in a week.
#12
Thanx, I appreciate it.
#13
Any news? Have been trying to fix it, but I havent been able to. Temporarily i might be making a class for a
like .code :P
#14
I'm coding a fix as I type. Should finish it today.
#15
cool! thnx
#16
Still working on it....holy hell does tinymce suck.
#17
I have created a new release (1.3). Please let me know if it solves your problem.
#18
#19
Checking it right now
#20
It works! How can I buy you a beer?