Questions tagged [django-tinymce]

django-tinymce is a pluggable django app that contains a widget to render a form field as a TinyMCE editor.

django-tinymce is a pluggable django app that contains a widget to render a form field as a TinyMCE editor.

146 questions
0
votes
0 answers

Uploading images with TinyMCE

I'm trying to install TinyMCE to my django project for blog posts, I have the initial content block working but It isn't allowing me to upload images with the following errors: Forbidden (CSRF token missing.):…
David Henson
  • 355
  • 1
  • 10
0
votes
1 answer

Using custom fonts in TinyMCE API for editor in django admin

I am trying to use TinyMCE API in Django admin for blog post editing. It is working flawlessly. However, now I want to add custom fonts to my editor. As per tinymce documentation for adding custom fonts I have followed all steps but still cannot…
0
votes
0 answers

Django Crispy Forms And TinyMCE

I've been playing with Django Crispy Forms the last couple of days...It's working...Kinda...But now I'm running into a problem with the TinyMCE editor. I'm running django-tinymce 3.3.0. The TinyMCE field displays via the normal template, but when…
0
votes
1 answer

Django tinymce does not upload image in production

I have trouble uploading images in production mode with django tinymce. It does upload images in development mode but not in production. It Would be great if someone could me help me get this going. settings.py import os from pathlib import…
0
votes
2 answers

Django-Tinymce not loading

I have included django-tinymce module in my django 3.1 project. However, the tinymce editor disappeared from my pages and I don't know why. When I run the project in my localhost I get a 404 on init_tinymce.js, a folder that is not in my project and…
0
votes
2 answers

How to change rtl direction to ltr in codesample plugin of tinymce

My Django-TinyMCE direction has turned rtl due to my language and everything looks fine except the codesample plugin which has gotten rtl and scrambles the code. I would appreciate anyone help me figure this out. I want code sample to be ltr while…
NimiA
  • 1
  • 1
  • 6
0
votes
1 answer

Rtl direction in TinyMce scrambles codesample

my Django-TinyMce direction has turned rtl due to my language and everything looks fine except the code sample plugin which has gotten rtl and scrambles the code. I would appreciate anyone help me figure this out. I want code sample to be ltr while…
0
votes
1 answer

Tiny MCE and Django

I was trying to build a blogging website. I used Tiny MCE and Django for the purpose. I could add/upload photos to my blogs. But the problem is the images uploaded via Tiny MCE are not responsive for smaller screens like a mobile phone screen. The…
0
votes
1 answer

Django Post shows with HTML tags

I have created a small blog that includes django-tinymce in model.py file. After I write a text in the Admin console and publish it, the text is shown with HTML tags. Please see the example bellow: This is my model.py file: from django.conf import…
Andrew Ramnikov
  • 783
  • 2
  • 9
  • 30
0
votes
1 answer

django slice filter breaks template for tinymce safe content

I have contents which were published using tinymce editor. Now, I want to show my content, that's why I have to use safe filter. But, whenever I'm trying to use slice or truncate filter, the template breaks. this is my HTML code. {% extends…
0
votes
1 answer

Add plugins (power paste) in TinyMce django

Hi I am trying to add paste plugin in TinyMce in my django app. Here is the setting.py configuration. TINYMCE_DEFAULT_CONFIG = { "toolbar": 'mobileequationeditor', 'height': 360, 'width': 1120, 'cleanup_on_startup':…
Prashant Pandey
  • 221
  • 3
  • 16
0
votes
1 answer

Integrating TinyMCE to Django

So i have been trying to use tinymce on my django project but i kept getting: ImportError: cannot import name 'TinyMCE' from 'tinymce' and Cannot find reference TinyMCE in init.py The very few articles online talks about integrating tinymce with…
Django Newbie
  • 15
  • 2
  • 6
0
votes
1 answer

Uninstalling django-tinymce. Import error when makemigrations

Thanks for taking the time to read this. I was not happy with TinyMCE extension in django and decided to switch to django-summernote. I first ran pip uninstall django-tinymce Removed all mentions of tinymce in the actual project. Followed the…
Rasul Kireev
  • 369
  • 1
  • 2
  • 16
0
votes
1 answer

How to reference a static file in Django that isn't inside my static file directory?

I want to use a javascript file that isn't in my static URL nor in any file that would be collected when running collect static. How would a point to this file in a way that I don't have to use {% load static %} It is basically so I can have only my…
0
votes
1 answer

Can't import my own css file in TINYMCE_DEFAULT_CONFIG = { 'content_css':

As I said in the title I can't import my css file in TINYMCE_DEFAULT_CONFIG variable 'content_css'. I'm using django-tinymce4-lite package and setting 'content_css' in my settings.py file I've tried with the boostrap cdn like this: 'content_css':…
Paul Choppin
  • 116
  • 1
  • 11