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
Comment #1
AlexAtNet commentedProblem 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
Comment #2
subhacom commentedI 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.
Comment #3
opdaviesWorks for me! :)
Just to clarify, point 1. is changed within the WYSWIYG settings along with 4.
Comment #4
msmithcti commentedI'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
Comment #5
mohamnag commentedI 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.
Comment #6
Neuromancer commentedI 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.
-------------------------------------------------------------------
Comment #7
Edward.H commentedsame problem here ,no solution?
Comment #8
verynic commentedsame to me
Comment #9
betovargHey 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
Comment #10
betovargI 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?
Comment #11
meecect commentedHi 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.
Comment #12
betovargThanx, I appreciate it.
Comment #13
betovargAny 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
Comment #14
meecect commentedI'm coding a fix as I type. Should finish it today.
Comment #15
betovargcool! thnx
Comment #16
meecect commentedStill working on it....holy hell does tinymce suck.
Comment #17
meecect commentedI have created a new release (1.3). Please let me know if it solves your problem.
Comment #18
meecect commentedComment #19
betovargChecking it right now
Comment #20
betovargIt works! How can I buy you a beer?