I have added a dojo rtf editor to a django admin page using the instructions from this blog post (Using Dojo Rich Editor with Django’s Admin).
The problem is that there appears and extra rtf editor at the top of the page .
How do I get rid of this ?
The Source Code for the project can be found at gautamk/QPaperGenerator-Django – GitHub.
I believe the problem is that all
textareaelements are getting turned into dijit editor widgets. The code at fault is in editor.js:As you can see, the query selects all
textareas, not just the ones you want. Now, I have no idea why there’s a text area up at the top of your screen to begin with, but presumably it’s getting hit by this query too. To fix the problem, try a more specific query. For instance something like one of these: