ivirabyan / jquery-mentions

Adds mentioning support to your text fields.
http://ivirabyan.github.io/jquery-mentions/
MIT License
114 stars 49 forks source link

compatibility with ckeditor #54

Open Sridatta7 opened 8 years ago

Sridatta7 commented 8 years ago

This is not an issue per se but a query. Is there any way we can make this plugin compatible with ckeditor? I have followed the suggestion mentioned by you and included contenteditable in mentions input.

But this part of the code is throwing me errors -

boundary = document.createRange(); boundary.setStart(node, this.start); boundary.collapse(true); rect = boundary.getClientRects()[0]; posX = rect.left + (window.scrollX || window.pageXOffset); posY = rect.top + rect.height + (window.scrollY || window.pageYOffset);

I am unable to fix the errors found in _setDropdownPosition method. Is there any alternative?

ivirabyan commented 8 years ago

Can you give a sample code showing how you initialize ckedit and mentionsInput?