editor: prevent selecting 1st child when not editable
This commit is contained in:
parent
cf9b3f4a9a
commit
44c9661b02
1 changed files with 3 additions and 0 deletions
|
|
@ -150,6 +150,9 @@ var Editor = class Editor {
|
|||
if(toSelectList && toSelectList.length){
|
||||
toSelectList.sort((a,b)=>a.container.offsetLeft>b.container.offsetLeft)
|
||||
toSelect = toSelectList[0]
|
||||
if (toSelect.container.classList.contains('not-editable')) {
|
||||
toSelect = null
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue