0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Koenig - Disable dragging of text within the editor

refs https://github.com/TryGhost/Ghost/issues/9505
- disable all drags that start within the editor, prevents hectic behaviour when selecting and dragging text
This commit is contained in:
Kevin Ansfield 2018-04-12 11:14:47 +01:00
parent bae24213df
commit 801c73dae6

View file

@ -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) {