Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
linkesch committed Apr 13, 2015
1 parent 97d63f9 commit 6df2842
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
if ($el.closest('.medium-insert-'+ addon).length) {
$current = $el;
}

if ($current.closest('.medium-insert-'+ addon).length) {
$p = $current.closest('.medium-insert-'+ addon);
activeAddon = addon;
Expand Down Expand Up @@ -455,7 +455,7 @@

if (activeAddon) {
$buttons.find('li').hide();
$buttons.find('a[data-addon="'+ activeAddon +'"]').parent().show();
$buttons.find('a[data-addon="'+ activeAddon +'"]').parent().show();
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/js/embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@
if(this.getCore().options.enabled) {
var $embed = $(e.target).hasClass('medium-insert-embeds') ? $(e.target) : $(e.target).closest('.medium-insert-embeds'),
that = this;

$embed.addClass('medium-insert-embeds-selected');

setTimeout(function () {
that.addToolbar();
that.getCore().addCaption($embed.find('figure'), that.options.captionPlaceholder);
Expand Down
18 changes: 9 additions & 9 deletions src/js/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
label: '<span class="fa fa-times"></span>',
clicked: function () {
var $event = $.Event('keydown');

$event.which = 8;
$(document).trigger($event);
$(document).trigger($event);
}
}
},
Expand Down Expand Up @@ -337,13 +337,13 @@
})).appendTo($place);

$place.find('br').remove();

if (this.options.autoGrid && $place.find('figure').length >= this.options.autoGrid) {
$.each(this.options.styles, function (style, options) {
var className = 'medium-insert-images-'+ style;

$place.removeClass(className);

if (options.removed) {
options.removed($place);
}
Expand Down Expand Up @@ -381,13 +381,13 @@
if(this.getCore().options.enabled) {
var $image = $(e.target),
that = this;

// Hide keyboard on mobile devices
this.$el.blur();

$image.addClass('medium-insert-image-active');
$image.closest('.medium-insert-images').addClass('medium-insert-active');

setTimeout(function () {
that.addToolbar();
that.getCore().addCaption($image.closest('figure'), that.options.captionPlaceholder);
Expand Down Expand Up @@ -586,7 +586,7 @@
}

this.getCore().hideButtons();

this.$el.trigger('input');
};

Expand Down
4 changes: 2 additions & 2 deletions src/sass/medium-editor-insert-plugin-frontend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
text-align: center;
figure {
margin: 0;
display: block;
display: block;
img {
max-width: 100%;
margin-top: 1em;
vertical-align: top;
vertical-align: top;
}
&:first-child {
img {
Expand Down

0 comments on commit 6df2842

Please sign in to comment.