Django - TinyMCE - admin - How to change editor size?
<p>I can't seem to find any way to hange editor size in TinyMCE.
I edit posts on my site in Django administration and to make it easier I looked for a better editor than just a textfield. I succesfully installed TinyMCE, but the editor is tiny, which makes editing very annoying.</p>

<p><a href="http://i.imgur.com/eaW5CXY.png" rel="nofollow">Here's how it looks like.</a></p>

<p>Here is my models.py</p>

<pre><code>from django.db import models
from tinymce.models import HTMLField

class Post(models.Model):
    title = models.CharField(max_length=140)
    # body = models.TextField()
    date = models.DateTimeField()
    body = HTMLField()

    def __str__(self):
        return self.title
</code></pre>

<p>Here is my admin.py:</p>

<pre><code>from django.contrib import admin
from blog.models import Post

admin.site.register(Post)
</code></pre>

<p>And here is my urls.py:</p>

<pre><code>from django.conf.urls import url, include
from django.views.generic import ListView, DetailView
from .models import Post

urlpatterns = [
    url(r'^$', ListView.as_view(
        queryset=Post.objects.all().order_by("-date")[:25],
        template_name='blog/blog.html')),
    url(r'^(?P&lt;pk&gt;\d+)$',
        DetailView.as_view(model=Post,
                           template_name='blog/post.html')),
]
</code></pre>

<p>I've been trying and googling for the past 2 hours, but I can't figure it out.</p>

<p>Can anyone help me?
Thanks.</p>

<p>As said in the docs (<a href="http://django-tinymce.readthedocs.io/en/latest/installation.html#configuration" rel="nofollow">http://django-tinymce.readthedocs.io/en/latest/installation.html#configuration</a>), there is the <code>TINYMCE_DEFAULT_CONFIG</code> setting which can be used to configure the editor. Just look for available options here: <a href="https://www.tinymce.com/docs/configure/editor-appearance/" rel="nofollow">https://www.tinymce.com/docs/configure/editor-appearance/</a>.</p>

<p>In your case, I think something like this may work:</p>

<pre><code>TINYMCE_DEFAULT_CONFIG = {
    'theme': "simple", # default value
    'relative_urls': False, # default value
    'width': '100%',
    'height': 300
}
</code></pre>

<p>Put it in your settings.py</p>

python django tinymce django-tinymce