Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#12894 closed Bug (invalid)

adding custom styles and automaticly created divs

Reported by: d.maliyshock Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

We have 2 issues.

  1. Doesnt work adding custom styles to dropdown styles list

We past ehis code into config.js, and dropdown styles list exactly the same. Nothing is changed.

CKEDITOR.stylesSet.add( 'my_styles',
    [
        // Block-level styles
        { name : 'icon for video', element : 'a', styles : {
            'display': 'block',
            'margin': 'auto',
            'width': '31px',
            'height': '34px',
            'background-image': 'url(/i/modern/sprite/icon_video.png)',
            'border-bottom': 'none'
            }
        }
  1. Ckeditor automaticly created div`s, that destroy layout compleatly.

Is there any chance to stop ck editor checking and clearing the styles, classes and layout?

Attachments (2)

config.js (1.6 KB) - added by d.maliyshock 4 years ago.
styles.jpg (329.9 KB) - added by Jakub Ś 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by d.maliyshock

Attachment: config.js added

comment:3 Changed 4 years ago by Jakub Ś

Object styles are at the bottom. Could you check whole dropdown and tell me if you can see your styles in object styles section.

comment:4 Changed 4 years ago by d.maliyshock

Already checked, whole doropdown. Can my styles called a different way then i named them?

Changed 4 years ago by Jakub Ś

Attachment: styles.jpg added

comment:5 Changed 4 years ago by Jakub Ś

Ok, sorry object styles are at the top. Anyway it works as expected. Please see attached image.

Can my styles called a different way then i named them?

If they are assigned to different category ("object styles" in this case) then yes.

Please also not that we don't support block-level links at the moment - http://dev.ckeditor.com/ticket/7961 so they may not work as expected.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy