Anyway to use innovaeditor in admin?

127 views
Skip to first unread message

frocco

unread,
Jan 14, 2013, 9:39:36 AM1/14/13
to django...@googlegroups.com
<script language="javascript" type="text/javascript" src='scripts/innovaeditor.js'></script>

Initialize the Editor below any <textarea> you’d like to replace.

        <textarea id="txtContent" rows="4" cols="30">
        <script language="javascript" type="text/javascript">
            var oEdit1 = new InnovaEditor("oEdit1");
            oEdit1.width = 750;
            oEdit1.height = 530;
            oEdit1.groups = [
                ["group1", "", ["Bold", "Italic", "Underline", "FontDialog", "ForeColor", "TextDialog", "RemoveFormat"]],
                ["group2", "", ["Bullets", "Numbering", "JustifyLeft", "JustifyCenter", "JustifyRight"]],
                ["group3", "", ["LinkDialog", "ImageDialog", "YoutubeDialog", "TableDialog", "Emoticons"]],
                ["group4", "", ["Undo", "Redo", "FullScreen", "SourceDialog"]]
                ];
            oEdit1.css = "styles/default.css";
            oEdit1.REPLACE("txtContent");
        </script>

Amirouche

unread,
Jan 14, 2013, 8:44:35 PM1/14/13
to django...@googlegroups.com
look at tutorials about other wysiwyg editors and django like the ck editor

frocco

unread,
Jan 15, 2013, 6:35:25 AM1/15/13
to django...@googlegroups.com
Thanks,

I ended up using ckeditor. 
I would have perferred using the one I just purchased.
The vendor has no experience with django.

Mostly .net and PHP

Nikolas Stevenson-Molnar

unread,
Jan 15, 2013, 12:30:32 PM1/15/13
to django...@googlegroups.com
You may be able adapt the methods used for integrating coeditor in the admin to integrate innovaeditor. The basic workflow is to query all textarea elements when the page loads and replace them with the rich text editor of your choice. You do this be adding a script to the media definitions for your ModelAdmin: https://docs.djangoproject.com/en/1.1/ref/contrib/admin/#modeladmin-media-definitions

_Nik

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/gwMzi6bGXqUJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages