Forum Discussion

Aaron Hawryluk's avatar
Aaron Hawryluk
Copper Contributor
Mar 13, 2018
Solved

Getting rich text from SPFx web parts into the search index

Hi there,   I've used react-script-editor, react-textboxio, and react-tinymce from the samples folder in sp-dev-fx-webparts to add rich content to pages, but that rich content never gets added to...
  • Franck Cornu's avatar
    Mar 14, 2018

    Hi Aaron Hawryluk. Actually, the content in the react-textboxio sample Web Part is indexed as an HTML string according to this https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/integrate-web-part-properties-with-sharepoint:

     

     

    protected get propertiesMetadata(): IWebPartPropertiesMetadata {
        return {
        'content' : {isHtmlString: true}
        };
      }

    As I remember and according to this https://github.com/SharePoint/sp-dev-fx-webparts/issues/102, the content is indexed and then available trough the "Description" managed property so it is not available trough the full text index. Can you check if you can get your content by querying this property explicitly?

     

     

    Franck.

     

Resources