django-tinymce

Django Grappelli Tabular Inline add new row TinyMCE textfield not editable

早过忘川 提交于 2020-01-22 13:39:25
问题 I am using django Grappelli skin for my project. I have a ModelAdmin with tabular inline function. I use extra = 0 to prevent auto insert blank row, when the page is loaded. It works fine. Now, when I click on the + sign to insert new row, the row is loaded, but the tinymce textfield is not editable. Anyone know what is the reasons and how to solve this problem? After reading the document: http://django-grappelli.readthedocs.org/en/latest/customization.html#using-tinymce I notice: Using

small problem with django-tinymce and django-filebrowser integration

白昼怎懂夜的黑 提交于 2020-01-05 04:38:13
问题 I am trying to integrate django-tinymce with django-filebrowser for my django admin site. Everything (almost) works fine. manage.py test filebrowser , works ok http://localhost:8000/admin/filebrowser/browse/ works, too however when I press the browse button on the windows popup of insert/edit image of tinymce button panel nothing happens. in my firefox debug window I get an error like this (when pressing browse ): f is undefined code: http://localhost:8000/static/js/tiny_mce/tiny_mce_src.js

django-tinymce modern theme

廉价感情. 提交于 2019-12-24 08:34:51
问题 I'm having issues getting the modern theme to work with django-tinymce. Both the simple and the advanced themes render correctly, but when I switch to the modern theme nothing renders and I get a 404 error for /static/tiny_mce/themes/modern/editor_template.js in the console I am attempting to do all of this in the django admin. The error is coming from /static/tiny_mce/tiny_mce.js which is interesting because I don't have anything installed in that directory. I'm using /static/js/tinymce as

TinyMCE with Django: “This field is required”

五迷三道 提交于 2019-12-23 03:22:41
问题 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 is required" label: This behaviour is odd, as I have implemented various TinyMCE editors within different models which have worked perfectly. I should clarify that I wish for both fields to be mandatory. The problem is that the text entered is being

Embedding tinyMCE in django flatpage

谁说胖子不能爱 提交于 2019-12-22 12:13:30
问题 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 urls.py for your project: urlpatterns = patterns('', ... (r'^tinymce/', include('tinymce.urls')), ) My flatpage url : url(r'^pages/', include('django.contrib.flatpages.urls')), 回答1: you need to override the widget for the content field. To do this: extend the

Django-tinymce in Django Admin - “can't find variable: tinyMCE”

旧时模样 提交于 2019-12-14 03:59:40
问题 I'm trying to use django-tinymce to edit fields in django admin. I've the app installed in my virtualenv ( django-tinymce==1.5.1b4 ). It's listed in my installed apps - INSTALLED_APPS = ( #... 'tinymce', #... ) My settings includes the following TINYMCE_DEFAULT_CONFIG = { 'theme': "advanced", 'theme_advanced_toolbar_location': "top", 'theme_advanced_buttons1': "bold,italic,underline,separator," "bullist,separator,outdent,indent,separator,undo,redo", 'theme_advanced_buttons2': "", 'theme

Apply tinyMCE settings to dynamicly created textarea

霸气de小男生 提交于 2019-12-13 06:24:20
问题 I create lots of tinymce with django: <script type="text/javascript" src="{{ STATIC_PREFIX }}js/tiny_mce/tiny_mce.js" </script> <script type="text/javascript" src="{{ STATIC_PREFIX }}js/tiny_mce/tiny_init.js" </script> <script type="text/javascript"> tinyMCE.settings = configArray[1]; tinyMCE.execCommand('mceAddControl', true, "tobs"); </script> {% for obs in obss %} <div id="obs"> DateTime:<samp>{{ obs.date }}</samp><br> Description: <br> <textarea id="tobs" class="ro">{{ obs.description }}<

TinyMCE installation gives warning

半城伤御伤魂 提交于 2019-12-13 00:39:06
问题 I did pip install django-tinymce and it gives this warning Downloading django-tinymce-1.5.1.tar.gz (2.4MB): 2.4MB downloaded Running setup.py egg_info for package django-tinymce warning: no previously-included files found matching '*.pyc' Installing collected packages: django-tinymce Running setup.py install for django-tinymce warning: no previously-included files found matching '*.pyc' Successfully installed django-tinymce Cleaning up... What does this error means I have have also installed