I'd like to be able to work with floated divs, div wrappers, etc.
I've added them to the dtyles dropdown and it seems to work alright when I'm using new content and putting text in if you do a few work-arounds. I learned that having the 'Showblacks' button is a MUST.
Can anyone shed some light onto this main issue?
Copying and pasting already-created div containers seems to add a width inline-style for some reason. In the source-view, I don't see any inline styles on the copied divs. But when pasted, they are added.
I'd love to be able to tell the editor that he/she can copy and paste things so they don't have to go through the process of creating containers, sub-containers, etc. But copy and pasting divs within the edtior seems to be finicky.
Maybe it's not possible as of now, or maybe I'm going through the process incorrectly.
Am I correct that you're
Am I correct that you're testing this on Chrome/Safari/new Opera? These browsers are known for creating unwanted inline styles when copy&pasting, deleting, backspacing etc. This is a main ticket grouping some of these issues: http://dev.ckeditor.com/ticket/9998. Unfortunately Blink/Webkit's devs seem to be uninterested in changing this problematic behaviours.
If you're using Advanced Content Filter (it is enabled by default), it would filter those styles unless one of enabled features allows for them. It can be e.g. a div plugin which allows divs with all styles. Remove this plugin from your build (either using CKBuilder or by config.removePlugins) and CKEditor should start filtering styles which are not allowed.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+