Adding Richtext type in schema
This commit is contained in:
@@ -31,4 +31,19 @@ def text_area(*args, **kwargs):
|
||||
return Field(*args, **kwargs)
|
||||
|
||||
|
||||
def RichtextMultiline(*args, **kwargs):
|
||||
kwargs['props'] = {
|
||||
"richtext": True,
|
||||
"multiline": True
|
||||
}
|
||||
|
||||
return Field(*args, **kwargs)
|
||||
|
||||
|
||||
def RichtextSingleline(*args, **kwargs):
|
||||
kwargs['props'] = {
|
||||
"richtext": True,
|
||||
"multiline": False
|
||||
}
|
||||
|
||||
return Field(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user