#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.
- 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' } }
- 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)
Change History (7)
Changed 10 years ago by
comment:1 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
- We`ve already tryed
http://joxi.ru/Vm6dj6LS05JjAZ http://joxi.ru/8AnB1xdS0QdXAO
comment:3 Changed 10 years ago by
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
Already checked, whole doropdown. Can my styles called a different way then i named them?
Changed 10 years ago by
Attachment: | styles.jpg added |
---|
comment:5 Changed 10 years ago by
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.
http://docs.ckeditor.com/#!/guide/dev_acf
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/guide/dev_disallowed_content
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
http://nightly.ckeditor.com/14-03-20-07-05/full/samples/datafiltering.html