Skip to content

Commit

Permalink
не теряем выравнивание при оборачивании врапером
Browse files Browse the repository at this point in the history
  • Loading branch information
Katochimoto committed Aug 19, 2015
1 parent 50ffef6 commit ceba202
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ckeditor-imgresize",
"version": "1.0.12",
"version": "1.0.13",
"main": [
"plugin.js"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ckeditor-imgresize",
"version": "1.0.12",
"version": "1.0.13",
"description": "CKEditor dragable image resizing with support divarea",
"keywords": [
"ckeditor",
Expand Down
5 changes: 5 additions & 0 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@
this._element.appendTo(this._wrapper);
}

var align = this._element.getStyle('float') || this._element.getAttribute('align');
if (align) {
this._wrapper.setStyles({ 'float': align });
}

selection.selectElement(this._wrapper);
this._wrapper.focus();

Expand Down

0 comments on commit ceba202

Please sign in to comment.