Opened 10 years ago

Closed 10 years ago

Last modified 10 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?

Find this issue on GitHub

Change History (7)

Changed 10 years ago by d.maliyshock

Attachment: config.js added

comment:3 Changed 10 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 10 years ago by d.maliyshock

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

Changed 10 years ago by Jakub Ś

Attachment: styles.jpg added

comment:5 Changed 10 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.

Find this issue on GitHub
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