Skip to content

Commit 0fab04e

Browse files
committed
Merge branch 't/11204'
2 parents 171b90f + d002318 commit 0fab04e

File tree

6 files changed

+21
-37
lines changed

6 files changed

+21
-37
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Fixed Issues:
1313
* [#11198](http://dev.ckeditor.com/ticket/11198): Widgets: Drag handler is not fully visible when inline widget is in a heading.
1414
* [#11132](http://dev.ckeditor.com/ticket/11132): [Firefox] Fixed: Caret is lost after drag and drop of inline widget.
1515
* [#11182](http://dev.ckeditor.com/ticket/11182): [Internet Explorer 10-11] Fixed: Editor crashes (IE11) or works with minor issues (IE10) if page is loaded in Quirks Mode. See [`env.quirks`](http://docs.ckeditor.com/#!/api/CKEDITOR.env-property-quirks) for more details.
16+
* [#11204](http://dev.ckeditor.com/ticket/11204): Added `figure` and `figcaption` styles to `contents.css` so [Enhanced Image](http://ckeditor.com/addon/image2) looks nicer.
1617

1718
## CKEditor 4.3
1819

contents.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,20 @@ span[lang]
104104
{
105105
font-style: italic;
106106
}
107+
108+
figure
109+
{
110+
text-align: center;
111+
border: solid 1px #ccc;
112+
border-radius: 2px;
113+
background: rgba(0,0,0,0.05);
114+
padding: 10px;
115+
margin: 10px 20px;
116+
display: block; /* For IE8 */
117+
}
118+
119+
figure figcaption
120+
{
121+
text-align: center;
122+
display: block; /* For IE8 */
123+
}

plugins/image2/dev/contents.css

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,8 @@ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
33
For licensing, see LICENSE.md or http://ckeditor.com/license
44
*/
55

6-
figure.caption {
7-
text-align: center;
8-
border: solid 1px #ccc;
9-
border-radius: 2px;
10-
background: rgba(0,0,0,0.05);
11-
padding: 10px;
12-
margin: 10px 20px;
13-
display: block; /* For IE8 */
14-
}
15-
16-
figure.caption figcaption {
17-
text-align: center;
18-
display: block; /* For IE8 */
19-
}
20-
216
.cke_widget_wrapper:hover:after {
22-
content: "id: " attr(data-widget-id);
7+
content: "id: " attr(data-cke-widget-id);
238
position: absolute;
249
top: 0;
2510
right: 0;

plugins/image2/dev/image2.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474

7575
</style>
7676
<link href="contents.css" rel="stylesheet">
77+
<link href="../../../contents.css" rel="stylesheet">
7778
</head>
7879
<body>
7980
<h1 class="samples">

plugins/image2/samples/contents.css

Lines changed: 0 additions & 19 deletions
This file was deleted.

plugins/image2/samples/image2.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ <h1 class="samples">
5050
CKEDITOR.replace( 'editor1', {
5151
extraPlugins: 'image2',
5252
height: 450,
53-
removePlugins: 'image',
54-
contentsCss: [ '../../../contents.css', 'contents.css' ]
53+
removePlugins: 'image'
5554
} );
5655

5756
</script>

0 commit comments

Comments
 (0)