How can I use the RichText editor draftail in Wagtail? - wagtail

This is a very generic question so I don't have any code to show for it yet however I am wondering if anyone can give me a minimal example or guidance on how to use the draftail editor in Wagtail, but not in the admin, but on a public facing page. I haven't managed to find any information on that in the Wagtail documentation, just pages on RichText internals about how to customise the editor in the admin.

Related

Salesforce communities how to edit CSS

I need help in how to identify which .Class CSS in communities I have to edit?
I am able to inspect the what changes needs to be done but unable to understand that in communities how do I edit it as I cannot find the class in it.Issue with button.
I am able to inspect it, but when I try to edit my changes made to communities, I am unable to find .slds-size_2-of-12 in communities. I am trying to make the changes from this Edit Css Make changes in communities. Please any one can guide me a little.
If the buttons come from aura/lwc custom code you should be able to set CSS on that component's level and it'lll override community defaults.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_css.htm - empty file should be generated for you automatically
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.create_components_css - there will be no empty file, create one in same directory as rest of component, with same name (myComponent.js, myComponent.html -> add myComponent.css). Here's a bit advanced example: https://salesforce.stackexchange.com/a/339936/799
If you're after community-wide change - in the Builder go to Security "tab" and there should be a menu to "edit head markup", you can paste some CSS overrides here. For example use this to hide Chatter "+ Follow" button on all pages. Since it's standard - you couldn't do it in component-level CSS.

The wagtail example of using entities isn't working for me

The Wagtail example of using entities as given in this page of documentation isn't working for me. I am following the third example of using Entities which is supposed to create a button for stock price but no button is appearing for me in the rich text field in the admin editor. I have created a minimum reproducible example which demonstrates just this problem. https://github.com/kiwiheretic/stockentity. I am using Wagtail 4.1.1 which I understand is the latest version.
Can anyone help me see what I have missed and why the button doesn't appear as expected?
This or a similar question was asked in the Wagtail Slack. To get the button to appear, it either needs to be included in the features list when you create a new RichTextField OR you need to add it to the default configuration using the WAGTAILADMIN_RICH_TEXT_EDITORS setting.

How Embed Gist in Wagtail?

How to insert dynamic gist code in the middle of posts generated by Wagtail (Django Cms)?
I searched the documentation of wagtail but did not find anything that could help me automatically insert the github codes.
Gist is one of the built in content types supported by Wagtail's embedded content feature. Within a rich text field, editors can use the 'media' toolbar icon to enter the URL to the Gist page, and it will appear embedded in the rich text content. Within a StreamField, the developer can EmbedBlock to the set of available block types, and the editor will then be able to enter the Gist URL into that field.

How to implement share with image for Google+ using angular?

i have a problem : I'm trying to share a link in Google plus using the "rules" explained in Google snippet developers guide, i've tried using itemprops attributes, but it doesn't work, I can't see the image specified in itemprop="image", neither the title and description. So I tried using the metas og:image og:title etc. and it doesn't work. Both itemprop attributes and og metas are populated with angular variables. There's someone who knows how to resolve this problem?

Integrating GeoExt 2.0 with Sencha Architect 3

Does anyone know the best way to go about integrating GeoExt 2.0 into Sencha Architect 3?
It seems like it is possible but there is not a very clear way to do it based on some of the documentation I have looked at.
A forum post here(GeoExt Inside Sencha Architect) on Sencha's forums mentions adding GeoExt as an external resource then instantianting classes inside Sencha architect from the resource. I followed the links in the post and it takes you Sencha's user guide for using resources.
Based on this information here I should be able to do the following.
Add GeoExt Map Panel as a resource
Place a panel in my view
Set the extend property on the panel I just placed to be GeoExtMapPanel.
However, I am not finding an extend property.
The other option I have looked into is possibly creating Architect Extension definitions for GeoExt components that I want to use. This option does seem more involved. There is a guide on creating a user extension here(Creating an Architect Extension).
If you want to use the extend property you'll need to create a Class not a Panel.

Resources