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
2
votes
1 answer

tinymce widget usage in django template

I created a model class Post(models.Model): title = models.TextField() body = models.TextField() and created forms.py as class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'body',) I have…
2
votes
1 answer

Using TinyMCE how do I limit html while ensuring that styles in the textarea match the styles output to my app

I'm using tinyMCE 3 (in my django app with django-tinymce). It's a very restricted set of html that I want output and I don't want tinyMCE adding inline styles or span elements. I've used the valid_elements parameter for tinyMCE.init(), but this…
Aidan Ewen
  • 13,049
  • 8
  • 63
  • 88
2
votes
4 answers

TinyMCE with Django: "This field is required"

I'm currently having issues using the TinyMCE editor within the Django admin interface. When entering text into two particular TinyMCE fields and pressing save, the form is returned with both fields empty, flagged red and tagged with a "This field…
James McAulay
  • 63
  • 2
  • 10
2
votes
2 answers

Django TinyMCE: 'ModelFormMetaclass' object is not iterable

I'm currently working with the Django framework to build a content management system into a company website, and after successfully completing one page, began work on a different page that requires a rich text editor within the admin…
James McAulay
  • 63
  • 2
  • 10
2
votes
3 answers

Django-Tinymce Import Error

I am trying to follow this tutorial on getting tinymce working with django and zinnia. It's not working, so I am attempting to do "Testing" but get this error when I run django-admin.py syncdb. How do I fix this? $django-admin.py syncdb Traceback…
mh00h
  • 1,824
  • 3
  • 25
  • 45
2
votes
1 answer

Embedding tinyMCE in django flatpage

I'm using django-tinymce. I'd like to know how to embed it in a flatpage in admin panel. From the project's readme: Add tinymce to INSTALLED_APPS in settings.py for your project: INSTALLED_APPS = ( ... 'tinymce', ) Add tinymce.urls to…
creative creative
  • 455
  • 1
  • 6
  • 12
2
votes
0 answers

django filebrowser upload failed

I have installed a django application with django-tinymce and django-filebrowser. In my machine every thing works fine. when I deployed the application to the production, filebrowser fails to upload file and it shows me the error message Failed Here…
Anas Rabei
  • 307
  • 1
  • 4
  • 14
2
votes
2 answers

django-tinymce HTMLField - paste as plain text in admin

I've got django-tinymce installed and various models in my app with an HTMLField. I'm trying to produce some sort of 'paste as plain text' functionality in the django admin. I want formatting from MS Word, HTML tags, and pretty much anything else…
Aidan Ewen
  • 13,049
  • 8
  • 63
  • 88
2
votes
3 answers

Django Tinymce Not Displaying The Rich Text Form

I want to use TinyMCE in my Django project, after doing all the necessary settings, when I visit the page, the form only render normal django form but not TinyMCE rich text form. Below are my settings. I copied tinymce folder to media folder: …
picomon
  • 1,479
  • 4
  • 21
  • 38
2
votes
1 answer

How To Enable CORS For TinyMCE Hyperlink Dialog Box

I have a requirement where I need to make a cross domain request to add a hyperlink for a TinyMCE text. This opens a dialog box which has the CORS url. The problem is I cant figure out how to enable CORS for TinyMCE plugin. Any Suggestions? Thanks…
Abilash
  • 6,089
  • 6
  • 25
  • 30
2
votes
2 answers

TinyMCE Stripping Out All Markup

I'm trying to insert a simple image link in a TinyMCE-wrapped text field, but it's stripping out all of my markup. My markup looks like:
Cerin
  • 60,957
  • 96
  • 316
  • 522
1
vote
0 answers

Integrating django-tinymce and django-filebrowser

I'm writing small django app which allows user to post messages with tinymce editor, installed with django-tinymce. Everything works fine, but when i'm trying to add django-filebrowser to install apps,tinymce widget disappears from post form. I have…
labuzm
  • 115
  • 1
  • 6
1
vote
1 answer

How to show TinyMCE editor in jquery modal window on click

I have made a blog application where I have this form for writing the blog. It has a title field, an instance of of tinymce editor for the blog body, a text field for adding tags and the submit button. What I want to do is to by default show the…
Sachin
  • 3,672
  • 9
  • 55
  • 96
1
vote
2 answers

How to set HTMLField's widget's height in Admin?

I have a HTMLField in a model as it's the laziest way to utilize tinymce widget in Admin. But the problem is that the textarea field doesn't have "rows" property set. So the textarea doesn't have enough height comfortable enough for editing in…
Georgie Porgie
  • 2,100
  • 3
  • 24
  • 25
1
vote
1 answer

setting table attributes in TinyMCE

When ever I create a table in TinyMCE I get:
Robert Johnstone
  • 5,431
  • 12
  • 58
  • 88