StevenDevooght / tinyMCE-mention

Mention/Autocomplete plugin for tinyMCE WYSIWYG editor.
http://stevendevooght.github.io/tinyMCE-mention/
221 stars 96 forks source link

Extend Tinymce to support mention plugin in joomla site #21

Closed sneha27 closed 9 years ago

sneha27 commented 9 years ago

Hello,

This is very awesome plugin, that works well when implemented independently. But I just want a way out to add same for joomla sites for the default TinyMce editors.

Things that I have tried are:

Can you please help me, where am I going wrong. Where do I add this code? And make it work throughout.. Would really appreciate your help..

StevenDevooght commented 9 years ago

Hi,

I don't have experience with joomla myself... However this line of code indicates that joomla has an extensibility point built-in for adding custom plugins.

sneha27 commented 9 years ago

Thank you.. Trying out few things. Hope that works.

sneha27 commented 9 years ago

Hi,

I'm using tinyMCE v3.5.x, hence using plugin v1.0.0 Below is the code I have added on event tinyMCE.init({... but cannot see any action nor errors. Mention js is included too.

Below is the code, I'm adding. Could you suggest me the change?

selector:'iframe, textarea', plugins : "advlink, paste, mention", delimiter: '@', mentions: { source: [ { name: 'Tyra Porcelli' }, { name: 'Brigid Reddish' }, { name: 'Ashely Buckler' }, { name: 'Teddy Whelan' } ] }

StevenDevooght commented 9 years ago

Hi,

Can you check if the plugin actually is loaded on the page? image

sneha27 commented 9 years ago

Hello,

Thanks for your response. Checked that.. Plugin/plugin file is loaded. Going through, editor_plugin.js control. Hope that helps. Tell me if any needful things are to be checked.

On Fri, Jun 12, 2015 at 9:09 PM, Steven Devooght notifications@github.com wrote:

Hi,

Can you check if the plugin actually is loaded on the page? [image: image] https://cloud.githubusercontent.com/assets/449346/8133632/cc46ca74-1129-11e5-9a7c-c50d0a45e2ba.png

— Reply to this email directly or view it on GitHub https://github.com/CogniStreamer/tinyMCE-mention/issues/21#issuecomment-111530972 .

Regards, Sneha

StevenDevooght commented 9 years ago

First you can check if the developer tools throw an exception. If not, you can put a break-point in editor_plugin and check if it is hit.