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

Create insertTpl problem CKEDITOR and Emojiarea #313

Open
laurentiustroia opened this issue Jul 14, 2015 · 0 comments
Open

Create insertTpl problem CKEDITOR and Emojiarea #313

laurentiustroia opened this issue Jul 14, 2015 · 0 comments

Comments

@laurentiustroia
Copy link

I have a problem with inserted tempalte, i don't found in documentation more explication about that. I use CKEDITOR with configuration prevent add enter new line https://github.com/ichord/At.js/wiki/usage-with-CKEditor and a emojiarea with this configuration:{ wysiwyg: true, button: false }

here is my at.js configuration:

insertTpl: "<a href='/${username}' target='_blank'>${atwho-at}${username}</a>\n", displayTpl: "<li>${name}(${username})</li>"

but after select i see in my div follow text: <span class="atwho-inserted"><a href="/Laurentiu" target="_blank">@Laurentiu</a></span> but the problem is if press space my tempalte gone and only see @Laurentiu and can't add more take, same problem i see if i don't use tag <a> i see <span class="atwho-inserted">@Laurentiu</span> and after press space some problem, gone <span> remaind only text.

Do some evaluation of text and let only text or can use html tags ?

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

No branches or pull requests

2 participants