Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't move to next cell using tabkey in specific case. #2679

Closed
arzzcom opened this issue Mar 23, 2018 · 0 comments
Closed

Can't move to next cell using tabkey in specific case. #2679

arzzcom opened this issue Mar 23, 2018 · 0 comments
Labels

Comments

@arzzcom
Copy link

arzzcom commented Mar 23, 2018

<ul>
<li></li>
<li><textarea></textarea></li>
</ul>
<script>
$("textarea").froalaEditor();
</script>

In this case, Tabkey doesn't work in tablecell.
Because of this code, (plugins/table.js)
if ($(editor.selection.element()).parents('ol, ul').length > 0 && ($(editor.selection.element()).parents('li').prev().length > 0 || ($(editor.selection.element()).is('li') && $(editor.selection.element()).prev().length > 0))) {
return true;
}

I think, Find ol, ul tag until .fr-view (not root elements)

$(editor.selection.element()).parentsUntil(".fr-view","ol, ul").length

stefanneculai added a commit that referenced this issue Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants