ghost-editor
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -105,4 +105,8 @@ import Ember from 'ember'; | ||
self.set('isVisible', true); | ||
$holder.css('top', position.top + $editor.scrollTop() - $holder.height()-20); //- edOffset.top+10 | ||
$holder.css('left', position.left + (position.width / 2) + $editor.scrollLeft() - edOffset.left - ($holder.width()/2)); | ||
Ember.run.schedule('afterRender', this, | ||
() => { | ||
$holder.css('top', position.top + $editor.scrollTop() - $holder.height()-20); //- edOffset.top+10 | ||
$holder.css('left', position.left + (position.width / 2) + $editor.scrollLeft() - edOffset.left - ($holder.width()/2)); | ||
} | ||
); | ||
@@ -109,0 +113,0 @@ self.set('isLink', false); |
@@ -83,18 +83,18 @@ import Ember from 'ember'; | ||
}, | ||
// { | ||
// name: "pullquote", | ||
// label: 'Pull Quote', | ||
// icon: "pullquote.svg", | ||
// selected: false, | ||
// type: 'block', | ||
// onClick: (editor) => { | ||
// editor.run(postEditor => { | ||
// postEditor.toggleSection('pull-quote'); | ||
// }); | ||
// }, | ||
// checkElements: function (elements) { | ||
// Ember.set(this, "selected", elements.filter(element => element.tagName === 'pull-quote').length > 0); | ||
// } | ||
// }, | ||
{ | ||
name: "pullquote", | ||
label: 'Pull Quote', | ||
icon: "pullquote.svg", | ||
selected: false, | ||
type: 'block', | ||
onClick: (editor) => { | ||
editor.run(postEditor => { | ||
postEditor.toggleSection('pull-quote'); | ||
}); | ||
}, | ||
checkElements: function (elements) { | ||
Ember.set(this, "selected", elements.filter(element => element.tagName === 'pull-quote').length > 0); | ||
} | ||
}, | ||
{ | ||
name: "ul", | ||
@@ -101,0 +101,0 @@ label: "List Unordered", |
{ | ||
"name": "ghost-editor", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "A mobiledoc-kit based editor for Ghost. WARNING DO NOT USE!", | ||
@@ -5,0 +5,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
502918
11409