djangosnippets.org: Latest snippets tagged with 'tinymce'https://djangosnippets.org/tags/tinymce/2009-08-28T14:56:18.952333-05:00TinyMCE Widget
2009-08-28T14:56:18.952333-05:00sementehttps://djangosnippets.org/snippets/1705/<p>Widget for TinyMCE 3.2.6, a WYSIWYG HTML editor for <code>textarea</code>.</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>
<pre><code>from django.contrib.flatpages.admin import FlatpageForm
class MyFlatPageForm(FlatpageForm):
content = forms.CharField(widget=TinyMCEEditor())
</code></pre>
<p><a href="http://tinymce.moxiecode.com/download.php">TinyMCE …</a></p>
Freely redistributableCleanup dirty HTML from a WYSIWYG editor
2009-05-29T09:57:37.422670-05:00denishttps://djangosnippets.org/snippets/1536/<p>My admin allows editing of some html fields using TinyMCE, so I end up with horrible code that contains lots of nested <code><p></code>, <code><div></code>, <code><span></code> tags, and style properties which destroy my layout and consistence.</p>
<p>This tag based on lxml tries to kill as much unneeded tags as …</p>
Freely redistributable