Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion src/yafowil/widget/wysihtml5/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@
"""


DOC_WYSIHTML5_DEPRECATION = """
.. raw:: html

<div class="alert alert-danger">
<i class="bi bi-exclamation-triangle-fill"></i>
<strong>Deprecation Notice:</strong>
yafowil.widget.wysihtml5 is
<strong>
deprecated
</strong>
and will no longer receive support or further development.
Please use
<a class="link-offset-3"
href="../++widget++yafowil.widget.tiptap/index.html">
yafowil.widget.tiptap
</a>
instead.
</div>
"""


def get_example():
ex1 = factory(u'fieldset', name='yafowil_wysihtml5')
ex1['text'] = factory('#field:wysihtml5', props={
Expand All @@ -44,6 +65,7 @@ def get_example():
})
return [{
'widget': ex1,
'doc': DOC_WYSIHTML5,
'doc': DOC_WYSIHTML5 if factory.theme != 'bootstrap5'
else DOC_WYSIHTML5_DEPRECATION + DOC_WYSIHTML5,
'title': 'wysihtml5 Field',
}]
Loading