Small changes for javascript formatted and structure
This commit is contained in:
parent
398a554c5d
commit
ca8afb0cbe
|
@ -8,14 +8,14 @@ function cursorInsideLink(value, pos) {
|
|||
if (start === pos) {
|
||||
return [null, false];
|
||||
}
|
||||
if (start === pos-1) {
|
||||
if (start === pos - 1) {
|
||||
return [null, false];
|
||||
}
|
||||
|
||||
let linkEnd = value.lastIndexOf("]]", pos-1)
|
||||
return [start+2, start >= linkEnd]
|
||||
let linkEnd = value.lastIndexOf("]]", pos - 1)
|
||||
return [start + 2, start >= linkEnd]
|
||||
}
|
||||
|
||||
export default {
|
||||
cursorInsideLink
|
||||
cursorInsideLink,
|
||||
}
|
||||
|
|
|
@ -315,7 +315,7 @@ function editor(root, inputData, options) {
|
|||
|
||||
function enableDragging(rootElement) {
|
||||
let drake = dragula([rootElement], {
|
||||
moves: function (el, container, handle) {
|
||||
moves: function (el, container, handle, sibling) {
|
||||
return handle.classList.contains('marker')
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import _ from 'lodash';
|
||||
import rotate from './util'
|
||||
import util from './util'
|
||||
let rotate = util.rotate;
|
||||
|
||||
/**
|
||||
* NOTE: Store should contain all methods that work with items. At the moment
|
||||
|
|
|
@ -17,4 +17,6 @@ function rotate(a, from, to, k) {
|
|||
}
|
||||
}
|
||||
|
||||
export default rotate;
|
||||
export default {
|
||||
rotate
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user