from plone.app.dexterity.textindexer import searchable
from plone.app.textfield import RichText as RichTextField
from plone.app.z3cform.widget import RichTextFieldWidget
from plone.autoform import directives as form
from plone.supermodel import model
from my.something import _
class ISomething(model.Schema):
urls_published = RichTextField(
title=_("label_urls_published", default="URLs published"),
required=False,
)
form.widget("urls_published", RichTextFieldWidget)
searchable("urls_published")
I get this in the edit/add forms:
What I expect
I would expect the form to automatically show the markdown mode. That is, no TinyMCE text editor.
What I did
With this setting, where the default type is set to
x-web-markdown
:Resp:
And form fields defined like so:
I get this in the edit/add forms:
What I expect
I would expect the form to automatically show the markdown mode. That is, no TinyMCE text editor.
Software versions
Plone 6.0.11.1