Skip to content

Commit

Permalink
Restore this branch, this shouldn't have been removed yet
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Nov 12, 2024
1 parent 08ee4da commit 0653758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions feincms3/inline_ckeditor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json

import django
from django import forms
from django.conf import settings
from django.core.checks import Warning
Expand Down Expand Up @@ -159,6 +160,8 @@ def __init__(self, *args, **kwargs):

attrs = kwargs.setdefault("attrs", {})
attrs["data-inline-cke"] = id(self.config)
if django.VERSION < (4, 2):
attrs["data-inline-cke-dj41"] = True
super().__init__(*args, **kwargs)

@property
Expand Down

0 comments on commit 0653758

Please sign in to comment.