Skip to content
#

Wagtail

wagtail logo

Wagtail is a free and open source content management system (CMS) written in Python. The project has a focus on developer friendliness as well as ease of use of its administration interface, translated in multiple languages.

Here are 316 public repositories matching this topic...

draftail
quirinpa
quirinpa commented Jan 18, 2021

Describe the bug

I'm trying to write a plugin to limit maximum content length in the draftail editor. I also want to be able to paste formatted content from outside the editor. Turns out my plugin's handlePastedText does not get called when setting prop stripPastedStyles to false. Unless I paste plain text.

Environment

Current version of draftail + draft.js 0.10.5

Steps to

vsalvino
vsalvino commented Apr 17, 2019

It is a common use-case to require a comma in a form choice, such as "Please specify your income: $1,000 - $2,000" etc. I think it would be preferable to use pipe separator since it is not an English grammatical character.

While we do have a very customized form page, we are still leaning on some underpinnings of wagtail.contrib.forms, so I think we will either need to provide our own choice fi

ruilvo
ruilvo commented Dec 22, 2021

Issue Summary

As per the docs, it's easily possible to get API endpoints for the built-in document types.

Example:

from wagtail.api.v2.router import WagtailAPIRouter
from wagtail.images.api.v2.views import ImagesAPIViewSet

api_router = WagtailAPIRouter("wagtailapi")

api_router.register_end
wagtail-grapple
sks444
sks444 commented Nov 9, 2021
from wagtail.core.fields import RichTextField

@register_snippet
class TestSnippet(models.Model):
    title = models.CharField(max_length=50)
    description = RichTextField(
        blank=True
    )

    panels = [
        FieldPanel('title'),
        FieldPanel('description'),
    ]

    graphql_fields = [
        GraphQLString('title', required=True),
        GraphQLS

Created by Torchbox

Released February 2014

Organization
wagtail
Website
wagtail.io
Wikipedia
Wikipedia

Related Topics

django python