edwh-editorjs 2.6.1__py3-none-any.whl → 2.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
editorjs/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.6.1"
1
+ __version__ = "2.6.2"
editorjs/blocks.py CHANGED
@@ -841,8 +841,11 @@ class EditorJSCustom(EditorJSBlock, markdown2.Extra):
841
841
  root = lxml.html.fromstring(html)
842
842
 
843
843
  attributes = dict(root.attrib)
844
- inner_html = "".join(
845
- lxml.html.tostring(child, encoding="unicode") for child in root
844
+
845
+ # support both innerText + innerHTML:
846
+ inner_html = (root.text or "") + "".join(
847
+ lxml.html.tostring(child, encoding="unicode", with_tail=True)
848
+ for child in root
846
849
  )
847
850
 
848
851
  return attributes, inner_html
@@ -860,7 +863,6 @@ class EditorJSCustom(EditorJSBlock, markdown2.Extra):
860
863
  handler = BLOCKS.get(_type)
861
864
 
862
865
  if not handler:
863
- raise ValueError(f"debug: {attrs = } {body = }") # fixme
864
866
  raise ValueError(f"Unknown custom type {_type}")
865
867
 
866
868
  return handler, attrs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edwh-editorjs
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: EditorJS.py
5
5
  Project-URL: Homepage, https://github.com/educationwarehouse/edwh-EditorJS
6
6
  Author-email: SKevo <skevo.cw@gmail.com>, Robin van der Noord <robin.vdn@educationwarehouse.nl>
@@ -1,10 +1,10 @@
1
- editorjs/__about__.py,sha256=yv0wJuq7dd_PlBhLN8iuPUYVsoACKuk2R3Gg5WU-tHk,22
1
+ editorjs/__about__.py,sha256=53Sii4w6BIWn-1RhaTyqUO46gDe4nDCRQDAcpsWFH24,22
2
2
  editorjs/__init__.py,sha256=-OHUf7ZXfkbdFB1r85eIjpHRfql-GCNUCKuBEdEt2Rc,58
3
- editorjs/blocks.py,sha256=5FJwfky4QEiNPJxQ61O1D0nQ8eEVWu3a1Qhi79JJKco,30176
3
+ editorjs/blocks.py,sha256=0tBuIHmDlAL_G4-SZ_zmJ9gGLabWjqAixKV2yjxbkPM,30201
4
4
  editorjs/core.py,sha256=4igv2l8Rm1S92kxKrIXGIUlNHh6pnjq8F28XQr91I9o,4510
5
5
  editorjs/exceptions.py,sha256=oKuWqi4CSnFGZfVZWtTZ2XZeHXm5xF-nAtX_1YLm6sI,230
6
6
  editorjs/helpers.py,sha256=q861o5liNibMTp-Ozay17taF7CTNsRe901lYhhxdwHg,73
7
7
  editorjs/types.py,sha256=W7IZWMWgzJaQulybIt0Gx5N63rVj4mEy73VJWo4VAQA,1029
8
- edwh_editorjs-2.6.1.dist-info/METADATA,sha256=pUeVwld9qEefDaWs0azSpu8mz-2FSq6HlrkZpvWqT-I,1045
9
- edwh_editorjs-2.6.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
- edwh_editorjs-2.6.1.dist-info/RECORD,,
8
+ edwh_editorjs-2.6.2.dist-info/METADATA,sha256=x6iZwk2IpCW6QRcLfbnUURH-0B3eTpSY5QBjw-NXBxQ,1045
9
+ edwh_editorjs-2.6.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
+ edwh_editorjs-2.6.2.dist-info/RECORD,,