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:
parent
bae24213df
commit
801c73dae6
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue