Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Issue#19 : Add option for rich text editor to forms #56

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ sphinx-copybutton
sphinxcontrib-django
sphinxcontrib-httpdomain
sphinxcontrib-spelling
tinymce

-e .
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.2.10 on 2024-02-22 09:01

from django.db import migrations
import tinymce.models


class Migration(migrations.Migration):

dependencies = [
("event", "0035_created_updated_everywhere"),
]

operations = [
migrations.AlterField(
model_name="event",
name="featured_sessions_text",
field=tinymce.models.HTMLField(null=True),
),
]
3 changes: 2 additions & 1 deletion src/pretalx/event/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from django.utils.translation import gettext_lazy as _
from django_scopes import scopes_disabled
from i18nfield.fields import I18nCharField, I18nTextField
from tinymce.models import HTMLField as RichTextField

from pretalx.common.cache import ObjectRelatedCache
from pretalx.common.language import LANGUAGE_NAMES
Expand Down Expand Up @@ -300,7 +301,7 @@ class Event(PretalxModel):
null=True,
blank=True,
)
featured_sessions_text = I18nTextField(
featured_sessions_text = RichTextField(
verbose_name=_("Featured sessions text"),
help_text=_(
"This text will be shown at the top of the featured sessions page instead of the default text."
Expand Down
Loading
Loading