Задать вопрос

Тел: +7 965 3737 888

472

Просмотров

1

Ответов

TinyMCE Widget

<p>Widget for TinyMCE 3.2.6, a WYSIWYG HTML editor for textarea.</p>
<p><strong>Note:</strong></p>
<blockquote>
<p>This snippet uses the TinyMCE package thats contains special jQuery build of TinyMCE and a jQuery integration plugin. Anyway, is easily to adapt to standard package.</p>
</blockquote>
<p>Usage example:</p>
from django.contrib.flatpages.admin import FlatpageForm
class MyFlatPageForm(FlatpageForm):
    content = forms.CharField(widget=TinyMCEEditor())

<p><a href="http://tinymce.moxiecode.com/download.php">TinyMCE download page</a></p>

Вопрос полезен? Да0/Нет0
file_2830.py(1.3Кб)
None

Ответы (1):

Ответvalerio.maggio:27.02.2012
Ответ полезен? Да0/Нет0

Great Snippet! Simple and Clean!

However, I would like to point out that, if used in Django 1.3x+, it requires to substitute settings.MEDIA_URL with settings.STATIC_URL.

Cheers