Skip to content

Commit ceba202

Browse files
author
Katochimoto
committed
не теряем выравнивание при оборачивании врапером
1 parent 50ffef6 commit ceba202

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ckeditor-imgresize",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"main": [
55
"plugin.js"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ckeditor-imgresize",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"description": "CKEditor dragable image resizing with support divarea",
55
"keywords": [
66
"ckeditor",

plugin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@
165165
this._element.appendTo(this._wrapper);
166166
}
167167

168+
var align = this._element.getStyle('float') || this._element.getAttribute('align');
169+
if (align) {
170+
this._wrapper.setStyles({ 'float': align });
171+
}
172+
168173
selection.selectElement(this._wrapper);
169174
this._wrapper.focus();
170175

0 commit comments

Comments
 (0)