Overview

This is a record of investigating how to customize LEAF Writer.

https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer

This time, it is a memo on how to add sample data. We add custom sample data as shown below.

Method

Please refer to the following.

https://gitlab.com/nakamura196/leaf-writer/-/commit/c4e98090c94874037980819c9672eea10814eedb

In addition to updating samples.json, it was also necessary to update apps/commons/src/icons/index.tsx to add an icon, although this is not mandatory.

Result

As shown below, the editor environment could be opened from the sample data.

Summary

I hope this serves as a helpful reference for understanding LEAF Writer.