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

Issue with Insert function #81

Open
Liahus3003 opened this issue Nov 9, 2019 · 0 comments
Open

Issue with Insert function #81

Liahus3003 opened this issue Nov 9, 2019 · 0 comments

Comments

@Liahus3003
Copy link

I have been trying to provide support for RTL languages in my application, so whenever I type ${name} in directionality RTL it gets changed to {name}$, this should not happen for me. Therefore I have been using the following format :

insert: function(item) { return "<span dir='ltr'>" + item.placeholder + "</span>"; },

while this works for my case with single placeholder, when I select multiple mentions like ${firstName} ${lastName} the format :
<span dir='ltr'>${firstName} <span dir='ltr'>${lastName}</span></span>

As you can see from the above example the second span is added inside the first span, this behavior is not my expected one. It should be like

<span dir='ltr'>${firstName}</span> <span dir='ltr'>${lastName}</span>

Is there a way that I can achieve this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant