MobyDog
05/15/2024, 4:56 PMMike Chambers
05/15/2024, 5:16 PMng-bind-html="block.data.richText.markup"
in https://github.com/umbraco/Umbraco.BlockGrid.Example.Website/blob/main/UmbracoBlockGrid/App_Plugins/UmbracoBlockGrid/BlockViews/richText.html
Though you can't simple change your local file as on build the files are set as immutable so are replaced...
You have to create a new blockpreview file. say richTextNew.html
and then change the custom prieview for the block setting in the backoffice.Mike Chambers
05/15/2024, 5:17 PMMike Chambers
05/15/2024, 5:18 PMMike Chambers
05/15/2024, 5:18 PM<div ng-bind-html="block.data.richText"></div>
should become <div ng-bind-html="block.data.richText.markup"></div>
Mike Chambers
05/15/2024, 5:21 PMMike Chambers
05/15/2024, 5:23 PMxml
<Copy SourceFiles="@(UmbracoBlockGridContentFiles)" DestinationFiles="@(UmbracoBlockGridContentFiles->'$(MSBuildProjectDirectory)\App_Plugins\UmbracoBlockGrid\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
over to ...
xml
<Copy Condition="!Exists('$(MSBuildProjectDirectory)\App_Plugins\UmbracoBlockGrid\%(RecursiveDir)%(Filename)%(Extension)') SourceFiles="@(UmbracoBlockGridContentFiles)" DestinationFiles="@(UmbracoBlockGridContentFiles->'$(MSBuildProjectDirectory)\App_Plugins\UmbracoBlockGrid\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
Dean Leigh
05/15/2024, 7:18 PMMobyDog
05/15/2024, 7:38 PMMobyDog
05/15/2024, 7:39 PMhuwred
05/16/2024, 7:30 AM