Class WikiHtmlTransformator
Translates wiki text parts in to a list of real and fake web parts
Inherited Members
Namespace: PnP.Framework.Modernization.Transform
Assembly: PnP.Framework.dll
Syntax
public class WikiHtmlTransformator : BaseTransform
Constructors
WikiHtmlTransformator(ClientContext, ClientContext, IPage, BaseTransformationInformation, IList<ILogObserver>)
Methods
TransformPlusSplit(List<WebPartEntity>, Boolean, Boolean)
Replaces embedded images and iframes with respective "fake" image and video web parts. Depending on the image/iframe position in the html the wiki text is broken up in multiple wiki text parts intermixed with image and/or video parts. Later on these web parts will be transformed to client side web parts
Declaration
public List<WebPartEntity> TransformPlusSplit(List<WebPartEntity> wikiPageWebParts, bool handleWikiImagesAndVideos, bool addTableListImageAsImageWebPart)
Parameters
List<WebPartEntity>
wikiPageWebParts
List of web parts on the page |
System.Boolean
handleWikiImagesAndVideos
If true images and videos embedded in wiki text will be transformed to actual image/video web parts, else they'll get a placeholder and will be added as separate web parts at the end of the page |
System.Boolean
addTableListImageAsImageWebPart
When an image lives inside a table (or list) then also add it as a separate image web part |
Returns
List<WebPartEntity>
Updated list of web parts |