Create a configuration for a property on one page type first and later copy that configuration to another page types property:
Another option is to create a configuration instance and then use that on multiple properties:
Building on the example above, you can also extend existing configurations if you need some additional configuration for a specific property:
Remember to call the `
Clone` method so that you do not affect the configuration that you want to extend.
### Set custom configuration
Some settings are not available as strongly typed API. For example, you could have developed your own TinyMCE plugin that requires a custom setting.
To set a custom setting, you can use either of the AddSetting or RawSetting methods:
RawSetting` method also has an overload that takes a JSON string.
### Example with many options set
The following example shows options set and a toolbar with three rows:
AddPlugin` method adds the values to the existing configuration. Calling `
ClearPlugins` before `
AddPlugin` to overwrite the list of registered plugins.
Toolbar` method overwrites the values that were previously configured so the end result might not be exactly what you expect. If you want to add to an existing configuration, use `
Putting all the previous examples together, you might end up with a configuration that looks something like this:
AddTinyMceConfiguration` should be added to the _Startup.cs_ like: