Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Koenig - Disable dragging of text within the editor
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#9505
- disable all drags that start within the editor, prevents hectic behaviour when selecting and dragging text
  • Loading branch information
kevinansfield committed Apr 12, 2018
1 parent 5984156 commit d9c5697
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/koenig-editor/addon/components/koenig-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,14 @@ export default Component.extend({
this._showCursor();
},

/* Ember event handlers ------------------------------------------------- */

// disable dragging
// TODO: needs testing for how this interacts with cards that have drag behaviour
dragStart(event) {
event.preventDefault();
},

/* internal methods ----------------------------------------------------- */

_getCardFromSection(section) {
Expand Down

0 comments on commit d9c5697

Please sign in to comment.