Questions tagged [django-tinymce]

django-tinymce is a pluggable django app that contains a widget to render a form field as a TinyMCE editor.

django-tinymce is a pluggable django app that contains a widget to render a form field as a TinyMCE editor.

146 questions
1
vote
1 answer

Installing TinyMCE on Django (And using it on forms)

Hi Im trying to install TinyMCE on a Django project and Im totally lost about static files, MEDIA, and the world itself. I want to use TinyMCE in one of the fields of a form: class MovieForm(forms.ModelForm): class Meta: model = Movie …
andyk
  • 161
  • 8
1
vote
1 answer

How to upload image to target folder on tinyMCE using justboil plugin?

I am using justboil image upload plugin on tinyMCE. I am able to upload image but that image instead of being uploaded to target folder “media” is uploaded to htdocs folder (xampp), means it does not even get uploaded to my root folder…
bɪˈɡɪnə
  • 1,087
  • 2
  • 23
  • 46
1
vote
2 answers

Use Django Flatpages with TinyMCE

I'm trying to achive the Django TinyMCE widget with Django Flatpages (into Admin). I already read this Embedding tinyMCE in django flatpage I did the sabe but is not working. Here is my admin.py code: from django.contrib.flatpages.admin import…
Lara
  • 2,170
  • 6
  • 22
  • 43
1
vote
3 answers

Can't get the TinyMCE to work in django admin

I follow the instruction in here to install the TinyMCE into the django Admin backend. But it is not working. When checking the console log, I saw this: http://127.0.0.1:8000/media/js/tiny_mce/tiny_mce.js Failed to load DO I need to manually…
dev-jim
  • 2,404
  • 6
  • 35
  • 61
1
vote
1 answer

Tinymce editor erases html code in admin site

I'm creating content in my pages with some javascript. I'm creating my divs and adding scripts. So, content is pulled into page via javascript. I'm also using django-tinymce package in my admin site. I'm typing and saving my HTML code via HTML…
Sefa
  • 8,865
  • 10
  • 51
  • 82
1
vote
2 answers

Tinymce editor not displaying in Django template

I'm trying to style a field in my form using django-tinymce without success, as it just displays an ordinary CharField in the form. The test form is part of a formset rendered with Django crispy forms. models.py class test(models.Model) test =…
zan
  • 594
  • 2
  • 8
  • 20
1
vote
0 answers

Configuring django-tinymce-filebrowser with django-tinymce doesn't work

I am using django tinymce for a text field in django form. It is not admin based. For inserting images, I tried django-tinymce-filebrowser. It is giving me following error in firefox error console in tiny_mce.js file: TypeError: p is…
escapee
  • 413
  • 1
  • 6
  • 14
1
vote
2 answers

TinyMCE popup windows not working in Django development server

TinyMCE is working just fine, all except for the popup windows. They come up blank, and after a little bit of Google searching, apparently it has something to do with cross domain errors with Firefox and Django. I tried using document.domain, but I…
rk919
  • 307
  • 2
  • 6
  • 13
1
vote
0 answers

Getting a timeout when including a TinyMCE form

I'm trying to include a TinyMCE rich text field on one of my pages, using the library django-tinymce. I've got the following form set up: class AddFactForm(forms.ModelForm): content = forms.CharField(widget=TinyMCE(attrs={'cols':80,…
benwad
  • 6,414
  • 10
  • 59
  • 93
1
vote
1 answer

Django admin with TinyMCE and stacked inline renders Textarea with Visibility:Hidden

I am using django-tinymce for my admin. I've got a Category model with a Product model in a One-to-Many relationship. In the app, I used StackedInline for Products and then added it to CategoryAdmin as such: class CategoryAdmin(admin.ModelAdmin): …
Max
  • 982
  • 10
  • 21
1
vote
2 answers

Django tinymce safe template tag

I'm currently trying django tinymce, I want to show on the main page a truncated text of around 200 characters in total. The problem is that I don't want html tags to show up nor images to show up in this truncated text.. Is there an easy way to…
user1301404
1
vote
1 answer

Alternative for Django-Tinymce-editor

I used django-tinymce in my project. The django-tinymce editor is appended on textarea field using "tinyMCE.execCommand('mceAddControl', false, id); " command but the problem is that it does't have image upload functionality from local machine.…
1
vote
3 answers

Serving static media directly from heroku with Django

Due to not being able to store TinyMCE js files on my S3 bucket due to origin problems i'm trying to get Heroku to serve them up. Here's what I've attempted so far but no luck. The browser url looks good…
KingFu
  • 1,358
  • 5
  • 22
  • 42
1
vote
1 answer

tincyMCE add multiple buttons

I am trying to add multiple buttons in TinyMce Editor. I tried this link TinyMCE adding multiple custom toolbar button and have it in below jsfiddle. This code generates only one button. jsfiddle.net/LJWcz/
pili
  • 795
  • 2
  • 10
  • 24
1
vote
1 answer

Pop-ups in django-tinymce editor showing 404 error

What is wrong: I have installed django-tinymce to work with text fields in the admin section of my site. The editor works good, though not as expected, because whenever I try to insert an image, link, symbol etc. - that is, whenever a pop-up is…