froala / django-froala-editor

Package to integrate Froala WYSIWYG HTML rich text editor with Django.
https://froala.com/wysiwyg-editor
283 stars 72 forks source link

Writing a Third Party Plugin #74

Open MSBPeace opened 5 years ago

MSBPeace commented 5 years ago

We are trying to write some custom functionality that we want to include into the FROALA editor field in Django. Unfortunately there seems to be no clear cut way to do this.

We've simply tried copying an existing THIRD PARTY PLUGIN and renaming some of the values but for some reason FROALA does not load this plugin into the editor.

Would it be possible to get a MVC on how to get this done? The examples in the documentation all point to the user having access to the FROALA object while it is being instantiated using javascript but since Django handles this we are unsure on how to achieve this.

tisdall commented 4 years ago

In order to use your own plugins, you need to manually load them in the template after the {{ form.media }} tag with a <script> tag.