Re: Anyway to use innovaeditor in admin?

2013-01-15 Thread Nikolas Stevenson-Molnar
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

On Jan 15, 2013, at 3:35 AM, frocco  wrote:

> 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
>  
> 
> On Monday, January 14, 2013 9:39:36 AM UTC-5, frocco wrote:
>  src='scripts/innovaeditor.js'>
> Initialize the Editor below any  you’d like to replace.
> 
> 
> 
> 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");
> 
> 
> -- 
> 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-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

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



Re: Anyway to use innovaeditor in admin?

2013-01-15 Thread frocco
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
 

On Monday, January 14, 2013 9:39:36 AM UTC-5, frocco wrote:
>
>  src='scripts/innovaeditor.js'>
>
> Initialize the Editor below any ** you’d like to replace.
>
> 
> 
> 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");
> 
>
>

-- 
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-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Anyway to use innovaeditor in admin?

2013-01-14 Thread Amirouche
look at tutorials about other wysiwyg editors and django like the ck 
editor

On Monday, January 14, 2013 3:39:36 PM UTC+1, frocco wrote:
>
>  src='scripts/innovaeditor.js'>
>
> Initialize the Editor below any ** you’d like to replace.
>
> 
> 
> 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");
> 
>
>

-- 
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/-/1Bjyu976xmgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.