Re: Error: ce is not defined

2009-08-13 Thread Sonal Breed

Hello all,

All I needed to was add spellchecker in editor_template.js's
theme_advanced_buttons1
and that gave me the button in toolbar.

Thanks in advance,
Sonal.

On Aug 13, 9:05 am, Sonal Breed  wrote:
> Hello Joost, everyone,
>
> I am trying to add specllchecker in tinymce toolbar.
> I installed PyEnchant package and in settings.py have added
> following:-
> TINYMCE_DEFAULT_CONFIG = {
>   'plugins': "table,spellchecker,paste,searchreplace, emotions,
> inlinepopups",
>   'theme': "advanced",
>   'cleanup_on_startup': True,
>   'custom_undo_redo_levels': 10,
>   'language': "{{ language }}",
>   'directionality': "{{ directionality }}",
>   'spellchecker_languages' : "{{ spellchecker_languages }}",
>   'spellchecker_rpc_url' : "{{ spellchecker_rpc_url }}"
>
> }
>
> I still am not able to see the spellchecker in the toolbar,
> I am definitely missing something, can anybody tell me wht
> additional steps I need to take??
>
> Thanks in advance,
> Sincerely,
> Sonal.
>
> On Jul 15, 11:24 am, Sonal Breed  wrote:
>
> > I will keep you posted, Joost, on this issue...
>
> > On Jul 15, 2:43 am, Joost Cassee  wrote:
>
> > > On Jul 14, 10:51 pm,SonalBreed  wrote:
>
> > > > After I made TINYMCE_COMPRESSOR as False, I could get tinymce toolbar.
> > > > However, the style dropdown is showing empty, and there are couple of
> > > > other things I would like to have, like spell checker and color.
> > > > Have to go through tinymce docs, do u have any tips?
>
> > > Setting the TinyMCE options (as documented in the TinyMCE wiki [1]) in
> > > TINYMCE_DEFAULT_CONFIG, as you have done, should just work. You will
> > > need a language pack for every language in LANGUAGES and the Enchant
> > > library as explained in the django-tinymce documentation [2].
>
> > > [1]http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
> > > [2]http://django-tinymce.googlecode.com/svn/trunk/docs/.build/html/insta...
>
> > > There have been reports that django-tinymce has a problem with
> > > languages with non-ASCII characters. I'm still trying to reproduce
> > > this.
>
> > > If you have more specific questions I may be able to help you
> > > better. :-)
>
> > > Regards,
>
> > > Joost
>
>
--~--~-~--~~~---~--~~
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: Error: ce is not defined

2009-08-13 Thread Sonal Breed

Hello Joost, everyone,

I am trying to add specllchecker in tinymce toolbar.
I installed PyEnchant package and in settings.py have added
following:-
TINYMCE_DEFAULT_CONFIG = {
  'plugins': "table,spellchecker,paste,searchreplace, emotions,
inlinepopups",
  'theme': "advanced",
  'cleanup_on_startup': True,
  'custom_undo_redo_levels': 10,
  'language': "{{ language }}",
  'directionality': "{{ directionality }}",
  'spellchecker_languages' : "{{ spellchecker_languages }}",
  'spellchecker_rpc_url' : "{{ spellchecker_rpc_url }}"

}

I still am not able to see the spellchecker in the toolbar,
I am definitely missing something, can anybody tell me wht
additional steps I need to take??


Thanks in advance,
Sincerely,
Sonal.

On Jul 15, 11:24 am, Sonal Breed  wrote:
> I will keep you posted, Joost, on this issue...
>
> On Jul 15, 2:43 am, Joost Cassee  wrote:
>
> > On Jul 14, 10:51 pm,SonalBreed  wrote:
>
> > > After I made TINYMCE_COMPRESSOR as False, I could get tinymce toolbar.
> > > However, the style dropdown is showing empty, and there are couple of
> > > other things I would like to have, like spell checker and color.
> > > Have to go through tinymce docs, do u have any tips?
>
> > Setting the TinyMCE options (as documented in the TinyMCE wiki [1]) in
> > TINYMCE_DEFAULT_CONFIG, as you have done, should just work. You will
> > need a language pack for every language in LANGUAGES and the Enchant
> > library as explained in the django-tinymce documentation [2].
>
> > [1]http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
> > [2]http://django-tinymce.googlecode.com/svn/trunk/docs/.build/html/insta...
>
> > There have been reports that django-tinymce has a problem with
> > languages with non-ASCII characters. I'm still trying to reproduce
> > this.
>
> > If you have more specific questions I may be able to help you
> > better. :-)
>
> > Regards,
>
> > Joost
>
>
--~--~-~--~~~---~--~~
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: Error: ce is not defined

2009-07-15 Thread Sonal Breed

I will keep you posted, Joost, on this issue...

On Jul 15, 2:43 am, Joost Cassee  wrote:
> On Jul 14, 10:51 pm,SonalBreed  wrote:
>
> > After I made TINYMCE_COMPRESSOR as False, I could get tinymce toolbar.
> > However, the style dropdown is showing empty, and there are couple of
> > other things I would like to have, like spell checker and color.
> > Have to go through tinymce docs, do u have any tips?
>
> Setting the TinyMCE options (as documented in the TinyMCE wiki [1]) in
> TINYMCE_DEFAULT_CONFIG, as you have done, should just work. You will
> need a language pack for every language in LANGUAGES and the Enchant
> library as explained in the django-tinymce documentation [2].
>
> [1]http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
> [2]http://django-tinymce.googlecode.com/svn/trunk/docs/.build/html/insta...
>
> There have been reports that django-tinymce has a problem with
> languages with non-ASCII characters. I'm still trying to reproduce
> this.
>
> If you have more specific questions I may be able to help you
> better. :-)
>
> Regards,
>
> Joost
--~--~-~--~~~---~--~~
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: Error: ce is not defined

2009-07-15 Thread Joost Cassee

On Jul 14, 10:51 pm, Sonal Breed  wrote:

> After I made TINYMCE_COMPRESSOR as False, I could get tinymce toolbar.
> However, the style dropdown is showing empty, and there are couple of
> other things I would like to have, like spell checker and color.
> Have to go through tinymce docs, do u have any tips?

Setting the TinyMCE options (as documented in the TinyMCE wiki [1]) in
TINYMCE_DEFAULT_CONFIG, as you have done, should just work. You will
need a language pack for every language in LANGUAGES and the Enchant
library as explained in the django-tinymce documentation [2].

[1] http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
[2] 
http://django-tinymce.googlecode.com/svn/trunk/docs/.build/html/installation.html#id1

There have been reports that django-tinymce has a problem with
languages with non-ASCII characters. I'm still trying to reproduce
this.

If you have more specific questions I may be able to help you
better. :-)

Regards,

Joost
--~--~-~--~~~---~--~~
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: Error: ce is not defined

2009-07-14 Thread Sonal Breed


Well Joost,
After I made TINYMCE_COMPRESSOR as False, I could get tinymce toolbar.
However, the style dropdown is showing empty, and there are couple of
other things I would like to have, like spell checker and color.
Have to go through tinymce docs, do u have any tips?

Thanks in advance,
Sonal.

On Jul 14, 2:13 am, Joost Cassee  wrote:
> On Jul 14, 1:53 am,SonalBreed  wrote:
>
> > I am trying to add django-tinymce-1.5 in my application.
> > I downloaded tinymce_3_2_5 and installed it using sudo python setup.py
> > install.
>
> > In my settings I have following:
> > [...]
> > INYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce.js'
> > TINYMCE_JS_ROOT = MEDIA_ROOT + 'js/tiny_mce'
>
> I'm assuming that these paths are correct.
>
> > TINYMCE_COMPRESSOR = True
>
> You could disable the compressor to aid debugging.
>
> Everything looks okay at first glance.
>
> > But i do not get the tinymce toolbar, in Firebug I get following
> > tinymce is not defined at
>
> > start : function() {
> >  var t = this, each = tinymce.each, s = t.settings, ln =
> > s.languages.split(',');
> > This is compressor, i believe.
>
> It seems the TinyMCE Javascript has not been rendered correctly.
>
> Maybe the compressor could not find all files?
>
> > Can anybody tell me what is it that I am doing wrong or is there
> > anything that I am missing.
>
> Could you show the generated Javascript?
>
> Regards,
>
> Joost
--~--~-~--~~~---~--~~
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: Error: ce is not defined

2009-07-14 Thread Joost Cassee

On Jul 14, 1:53 am, Sonal Breed  wrote:

> I am trying to add django-tinymce-1.5 in my application.
> I downloaded tinymce_3_2_5 and installed it using sudo python setup.py
> install.
>
> In my settings I have following:
> [...]
> INYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce.js'
> TINYMCE_JS_ROOT = MEDIA_ROOT + 'js/tiny_mce'

I'm assuming that these paths are correct.

> TINYMCE_COMPRESSOR = True

You could disable the compressor to aid debugging.

Everything looks okay at first glance.

> But i do not get the tinymce toolbar, in Firebug I get following
> tinymce is not defined at
>
> start : function() {
>  var t = this, each = tinymce.each, s = t.settings, ln =
> s.languages.split(',');
> This is compressor, i believe.

It seems the TinyMCE Javascript has not been rendered correctly.

Maybe the compressor could not find all files?

> Can anybody tell me what is it that I am doing wrong or is there
> anything that I am missing.

Could you show the generated Javascript?

Regards,

Joost
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Error: ce is not defined

2009-07-13 Thread Sonal Breed

Hi all,
I am trying to add django-tinymce-1.5 in my application.
I downloaded tinymce_3_2_5 and installed it using sudo python setup.py
install.

In my settings I have following:
PROJECT_DIR = os.path.dirname(__file__)
MEDIA_ROOT = os.path.join(PROJECT_DIR, 'static')
MEDIA_URL = 'http://localhost:8000/static/'

INSTALLED_APPS = (
   ...
'tinymce',
..
)

INYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce.js'
TINYMCE_JS_ROOT = MEDIA_ROOT + 'js/tiny_mce'
TINYMCE_DEFAULT_CONFIG = {
'plugins': "table,spellchecker,paste,searchreplace",
'theme': "advanced",
'cleanup_on_startup': True,
'custom_undo_redo_levels': 10,
}
TINYMCE_SPELLCHECKER = True
TINYMCE_COMPRESSOR = True


In urls.py
(r'^tinymce/', include('tinymce.urls')),

Model is
class testTM(models.Model):
  user = models.ForeignKey(User, unique=True, editable=False,
   related_name='testTM')
  test = models.CharField(max_length=10, blank=False)


and form is
class testTMForm(forms.ModelForm):"
  test = forms.CharField(widget=TinyMCE(attrs={'cols': 10, 'rows':
5}))

  class Meta:
model = testTM

In template,

{% extends "base.html" %}


{% block meta %}
{{ form.media }}

{% endblock %}

{% block content %}


{{ form.as_p }}




{% endblock %}


But i do not get the tinymce toolbar, in Firebug I get following
tinymce is not defined at

start : function() {
 var t = this, each = tinymce.each, s = t.settings, ln =
s.languages.split(',');
This is compressor, i believe.

Can anybody tell me what is it that I am doing wrong or is there
anything that I am missing.


Thanks in advance,
Sonal.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---