Skip to content

Commit

Permalink
Merge pull request #375 from Badsender-com/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
medamineziraoui committed Jun 3, 2021
2 parents 38b65e8 + 1a67fdf commit 67ed437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/editor/src/js/converter/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ var processBlock = function (

var tmplName = templateCreator(element);

var containerBind = '{ maxWidth: ' + width;
var containerBind = '{';
if (align == 'left') containerBind += ", float: 'left'";
else if (align == 'right') containerBind += ", float: 'right'";
else if (align == 'center')
Expand All @@ -446,7 +446,6 @@ var processBlock = function (
else if (align == 'bottom')
containerBind += ", verticalAlign: 'bottom'";
containerBind += '}';

$(element).before(
'<!-- ko wysiwygImg: { _data: $data, _item: ' +
itemBindValue +
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/tmpl/img-wysiwyg.tmpl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<table tabfocus="0" cellspacing="0" cellpadding="0" data-drop-content="Drop here" data-bind="style: _stylebind, click: function(obj, evt) { $root.selectItem(_item, _data); return true; }, clickBubble: false, fudroppable: { activeClass: 'ui-state-highlight', hoverClass: 'ui-state-draghover' }, extdroppable: { options: { accept: '.image', activeClass: 'ui-state-highlight', hoverClass: 'ui-state-draghover' }, data: _src, dragged: $root.fileToImage }, css: { selecteditem: $root.isSelectedItem(_item) }, scrollIntoView: $root.isSelectedItem(_item), attr: { 'data-drop-content': $root.t('Drop here'), width: _width, height: _height, align: _align }"
class="img-wysiwyg selectable-img" style="display: table;"><tr><td class="uploadzone">
class="img-wysiwyg selectable-img" style="display: table; width:100%"><tr><td class="uploadzone">
<div class="mo-imgselectionhelper"></div>
<div class="mo-uploadzone"></div>
<div class="img-size" data-bind="text: _size">size</div>
Expand Down

0 comments on commit 67ed437

Please sign in to comment.