I'm using CKEditor 3. I've loaded a set of custom styles that are just a copy of what the default is plus styles for an image-left class and an image-right class:
I've also loaded a set of styles for the drop down Styles menu:
I've added some text and then I add an image. I select the image and choose the styles menu and select Image on Left, the image is then floated to the left. If I select the image again and try to change it to Image on Right, there's nothing in the Styles dropdown.
I've tested this in Safari and Firefox. Firefox performs just fine and also gives me controls to resize the image. In Safari, I can't resize the image or change the class once one is picked.
Any advice on where to go? Or should I drop this in the bug tracker?
body { /* Font */ font-family: Arial, Verdana, sans-serif; font-size: 12px; /* Text color */ color: #222; /* Remove the background color to make it transparent */ background-color: #fff; } html { /* #3658: [IE6] Editor document has horizontal scrollbar on long lines To prevent this misbehavior, we show the scrollbar always */ _overflow-y: scroll } img:-moz-broken { -moz-force-broken-image-icon : 1; width : 24px; height : 24px; } img, input, textarea { cursor: default; } .image-left { float: left; margin: 0 10px 10px 0; } .image-right { float: right; margin: 0 0 10px 10px; }
I've also loaded a set of styles for the drop down Styles menu:
CKEDITOR.addStylesSet('mystyles',[ {name:'Image on Left', element:'img', attributes:{'class': 'image-left'}}, {name:'Image on Right', element:'img', attributes:{'class': 'image-right'}} ]);
I've added some text and then I add an image. I select the image and choose the styles menu and select Image on Left, the image is then floated to the left. If I select the image again and try to change it to Image on Right, there's nothing in the Styles dropdown.
I've tested this in Safari and Firefox. Firefox performs just fine and also gives me controls to resize the image. In Safari, I can't resize the image or change the class once one is picked.
Any advice on where to go? Or should I drop this in the bug tracker?