I have a Django-powered site that's like a mini CMS. I want to let users with no HTML knowledge edit the contents of the page. The problem is that most of the pages have some more or less complex HTML bits in them (for example a Bootstrap accordion), which needs to be intact for the page to not break.
I tried setting up an WYSIWYG editor, but that turned out to be a disaster, because it heavily alters my HTML (removes attributes, adds p
tags all over etc).
Is there a viable option to let people change the text of the page, but not the HTML structure?
For reference, my Page
model looks like:
class Page(models.Model):
title = models.CharField(max_length=150)
content = models.TextField()