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

Auto suggation box doesn't open if we use BR tag on enter key instead of P tag. #23

Closed
masihur opened this issue Jun 12, 2015 · 2 comments
Labels

Comments

@masihur
Copy link

masihur commented Jun 12, 2015

Hi,
I have used tinyMCE 3.5 version. We use BR tag for enter key instead of P tag (default feature of tinyMCE). In this case if a user press enter key then auto-suggestion box doesn't open on @symbol.
Applied a condition into the function o(). After that issue have been fixed.
Code as below.

function o() {
    var n = t((e.selection.getNode().outerHTML).replace("<br>","&nbsp;")),
    r = n.text(),
    i = r.substr(r.length - 1, 1);   
    return !!t.trim(i).length ? false : true
}

Please review it and add this into your original library.

@StevenDevooght
Copy link
Owner

I fixed the prevCharIsSpace function so it also works with force_br_newlines enabled.

The fix is included in the 3.5.0 tag.

@masihur
Copy link
Author

masihur commented Jun 15, 2015

Hi,
Thank You Steven Devooght.

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