Opened 8 years ago

Closed 8 years ago

#14284 closed Bug (expired)

extra white space appear in code snippet area in ckeditor

Reported by: zami Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

I am using ckeditor's code snippet pluggin.Problem is when in put code in the window everything is ok in chrome ,but when i put it in editor a lot of white space appears.And in firefox white space appears both in snippet window and editor.How i can solve this? i want something like SO's code snippet's auto indentation

i tried the following code.but not helping me much:

CKEDITOR.addCss( 'body {word-break:break-all;}' );

CKEDITOR.addCss('code{font-size:14px;}'); CKEDITOR.addCss('code{white-space:pre-wrap}');

Attachments (2)

bal.PNG (45.6 KB) - added by zami 8 years ago.
in the editor body
actual.PNG (16.0 KB) - added by zami 8 years ago.
in codesnippet window

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by zami

Attachment: bal.PNG added

in the editor body

Changed 8 years ago by zami

Attachment: actual.PNG added

in codesnippet window

comment:1 Changed 8 years ago by Jakub Ś

Status: newpending
Version: 4.5.6

.Problem is when in put code in the window everything is ok

What Window? Are you talking about page being displayed in a browser window? If that is the case, could you attach sample html file that I could display in a browser, copy code from it and paste into conde snippet plugin window?

comment:2 Changed 8 years ago by Jakub Ś

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy