dash.lib.tinymce package


dash.lib.tinymce.settings module

dash.lib.tinymce.widgets module

This TinyMCE widget was copied and extended from this code by John D’Agostino: http://code.djangoproject.com/wiki/CustomWidgetsTinyMCE

class dash.lib.tinymce.widgets.AdminTinyMCE(attrs=None)[source]

Bases: django.contrib.admin.widgets.AdminTextareaWidget, dash.lib.tinymce.widgets.TinyMCE

class dash.lib.tinymce.widgets.TinyMCE(content_language=None, attrs=None, mce_attrs=None)[source]

Bases: django.forms.widgets.Textarea

TinyMCE widget. Set settings.TINYMCE_JS_URL to set the location of the javascript file. Default is “MEDIA_URL + ‘js/tiny_mce/tiny_mce.js’”. You can customize the configuration with the mce_attrs argument to the constructor.

In addition to the standard configuration you can set the ‘content_language’ parameter. It takes the value of the ‘language’ parameter by default.

In addition to the default settings from settings.TINYMCE_DEFAULT_CONFIG, this widget sets the ‘language’, ‘directionality’ and ‘spellchecker_languages’ parameters by default. The first is derived from the current Django language, the others from the ‘content_language’ parameter.

render(name, value, attrs=None)[source]

Module contents