# Help in adding third-party plugins to ckeditor

**URL:** <https://forum.xwiki.org/t/help-in-adding-third-party-plugins-to-ckeditor/5651>\
**Category:** Help / Discuss\
**Tags:** ckeditor, xwiki, plugins\
**Created:** [October 7, 2019, 12:54pm UTC](https://forum.xwiki.org/t/help-in-adding-third-party-plugins-to-ckeditor/5651 "2019-10-07T12:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micro](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/5f8ce5/32.png) [@micro](https://forum.xwiki.org/u/micro)\
**Post date:** [October 7, 2019, 12:54pm UTC](https://forum.xwiki.org/t/help-in-adding-third-party-plugins-to-ckeditor/5651/1 "2019-10-07T12:54:38Z")

</div>

Please help me deal with the addition of third-party ckeditor plugins using ckeditor intergration. I need to add the plugin “autocorrect” and I do not understand the instruction (((Use additional CKEditor plugins).  
I don’t understand where to write it. CKEDITOR.plugins.addExternal (‘plugin name’, ‘plugin URL or path’); ??? in what config file? My system is on linux. Can anyone have experience adding third-party plugins, please share?

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [October 8, 2019, 8:33am UTC](https://forum.xwiki.org/t/help-in-adding-third-party-plugins-to-ckeditor/5651/2 "2019-10-08T08:33:02Z")

</div>

> [@micro](#):
>
> I don’t understand where to write it

I just checked [https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#HUseadditionalCKEditorplugins](https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#HUseadditionalCKEditorplugins) and the line

> CKEDITOR.plugins.addExternal(‘plugin name’, ‘plugin URL or path’);

If followed by

> You can put this:
> 
> - In the “Advanced Configuration” …
> - In a JavaScript [skin extension](https://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial) …

What part is not clear?

---

<div class="post-metadata">

**Author:** ![micro](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/m/5f8ce5/32.png) [@micro](https://forum.xwiki.org/u/micro)\
**Post date:** [October 8, 2019, 8:39am UTC](https://forum.xwiki.org/t/help-in-adding-third-party-plugins-to-ckeditor/5651/3 "2019-10-08T08:39:36Z")

</div>

Can you please write an example, adding a third-party plug-in as an example of auto-substitution in the “Advanced configuration” … As I understand it, in order to add third-party plugins, I should write the whole config in the “Advanced configuration” …? Including And the content of the Sandbox. Foo JSX would look something like:

CKEDITOR.plugins.add (‘foo’, {  
init: function (editor) {  
…  
}  
});  
In a JavaScript skin extension. E.g .:  
require ([‘deferred! ckeditor’], function (ckeditorPromise) {  
ckeditorPromise.done (function (ckeditor) {  
ckeditor.plugins.addExternal (‘foo’, “$ xwiki.getSkinFile (‘ckeditorPlugins / foo.js’)”);  
});  
});
