![]() You can download OpenOffice for FREE from this link:.OpenOffice is a free open-source application, and it handles international character sets and CSV files much better than Microsoft Excel. Whenever possible, we recommend that you use OpenOffice when creating a CSV file to import into Accompa. With bold, italic, h2, h3, h4, ul, ol, hr, and br already being in the Wagtail default set for a RichTextField.Home > Adding, Editing & Deleting Requirements > Creating CSV file: Excel vs. Inline styles: Bold, Italic, Underline, Code, Strikethrough, Mark, Keyboard, Superscript, Subscript.Block types: H1, H2, H3, H4, H5, H6, Blockquote, Code, UL, OL, P. ![]() ![]() To modify this to work with another built in Draftail feature, modify the feature_name, type_, tag, label, and description fields. This adds the feature to all RichTextFields without having to add the features= setting to each existing and/or new RTF. The line fault_features.append(feature_name) is what answers the last part of my question - and is missing from the docs (well, it's there, but not in this context). 'from_database_format': ,įfault_features.append(feature_name)įeatures.register_converter_rule('contentstate', feature_name, db_conversion) 'draftail', feature_name, draftail_features.InlineStyleFeature(control) Put the following code in the file: import _ as draftail_featuresįrom _to_contentstate import InlineStyleElementHandlerįrom re import register_strikethrough_feature(features): Create a file in one of your registered (in INSTALLED_APPS) app directories called wagtail_hooks.py.I believe I have figured out how to do this, hopefully, someone will correct me if there is a better way! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |