Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
editorjs
Commits
c41ec503ffc4
Commit
c41ec503
authored
Jun 08, 2021
by
Fabien Amarger
Browse files
fix(black): fix forgottent black
parent
7eb5b456b7e2
Pipeline
#60668
passed with stages
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_editorjs/__init__.py
View file @
c41ec503
...
...
@@ -49,6 +49,8 @@
old_get_widget
=
formfields
.
RichTextField
.
get_widget
@
monkeypatch
(
formfields
.
RichTextField
)
def
get_widget
(
self
,
form
):
if
self
.
widget
is
None
:
...
...
@@ -58,6 +60,8 @@
old_get_format_field
=
formfields
.
RichTextField
.
get_format_field
@
monkeypatch
(
formfields
.
RichTextField
)
def
get_format_field
(
self
,
form
):
if
self
.
format_field
:
...
...
@@ -81,6 +85,8 @@
old_printable_value
=
entity
.
Entity
.
printable_value
@
monkeypatch
(
entity
.
Entity
)
def
printable_value
(
self
,
...
...
@@ -113,9 +119,7 @@
if
attrformat
==
"application/vnd.cubicweb.editorjs"
:
self
.
_cw
.
add_js
(
"cubes.editorjs.js"
)
return
f
'<textarea cubicweb:type="editorjs" cubicweb:mode="read">
{
value
}
</textarea>'
return
old_printable_value
(
self
,
attr
,
value
,
attrtype
,
format
,
displaytime
)
return
old_printable_value
(
self
,
attr
,
value
,
attrtype
,
format
,
displaytime
)
def
includeme
(
config
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment