Posts: 120
Threads: 22
Joined: Dec 2015
2016-01-15, 17:46:56
(This post was last modified: 2016-01-17, 04:47:24 by jwzumwalt.)
When I put a code listing in CKEDIT, it removes all backslashes such a c language return & newline.
How can I force CKEDIT not to modify text?
i.e
Code:
printf("some text\r\n");
becomes
printf("some textrn");
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Posts: 6,267
Threads: 182
Joined: Sep 2011
Use entities or put it in code or pre tags?
Posts: 120
Threads: 22
Joined: Dec 2015
2016-01-16, 01:48:16
(This post was last modified: 2016-01-16, 01:50:19 by jwzumwalt.)
(2016-01-15, 23:09:04)shawn_a Wrote: Use entities or put it in code or pre tags?
Neither <pre>, <code>, or <xmp> (or both, or all) solve the problem.
I don't know what you mean by entities?
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Posts: 3,491
Threads: 106
Joined: Mar 2010
Does it happen also with ckeditor disabled?
Posts: 6,267
Threads: 182
Joined: Sep 2011
I do not see this behavior.
Posts: 3,491
Threads: 106
Joined: Mar 2010
I don't either. Tested again with magic quotes enabled too.
Perhaps some plugin...
Posts: 120
Threads: 22
Joined: Dec 2015
2016-01-16, 06:37:39
(This post was last modified: 2016-01-16, 06:53:01 by jwzumwalt.)
(2016-01-16, 03:29:36)Carlos Wrote: I don't either. Tested again with magic quotes enabled too.
Perhaps some plugin...
Thanks for the replies.
This has been a constant issue since I first started using GS a month ago. CKEDIT keeps screwing with code format. If I want a <br>, it usually replaces with <p> </p>. If I want a line indented for clarity, it re-indents the way it thinks it should be. The list goes on....
Is there other options for text editors?
I am using the default ckedit 3.xxx that came with GS, how can I upgrade to 4.x?
Other than this problem, I now have GS working pretty much how I want and really like it.
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Posts: 6,267
Threads: 182
Joined: Sep 2011
That is entermode_br settable.
Install the cke_patch plugin for 4.x
There are alot of options for ckeditor to change its behavior, and the docs are not that user friendly.
is it possible you have a plugin or a gsconfig setting messing your settings up ?
Posts: 120
Threads: 22
Joined: Dec 2015
2016-01-17, 02:07:59
(This post was last modified: 2016-01-17, 04:35:12 by jwzumwalt.)
(2016-01-16, 07:29:58)shawn_a Wrote: That is entermode_br settable.
Install the cke_patch plugin for 4.x
There are alot of options for ckeditor to change its behavior, and the docs are not that user friendly.
is it possible you have a plugin or a gsconfig setting messing your settings up ?
Well, none of the above fixed the problem.
UPDATE:
After considerable switching back and forth between a fresh GS install, I found it was the
"Custom Title" plugin that was causing the trouble
Thanks for all the help
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")