- Description:
This key defines globs that filter which files CloudCannon should use for configuring Rich Text formatting.
Values in this array are relative to the root of your repository (i.e.,
/, not the value ofsource) and must end in the file extension.cloudcannon.editables.yml.You can use this key anywhere you would use the
_editableskey in the configuration cascade.This key has no default.
- Appears in:
├── collections_config │ └── * │ ├── schemas │ │ └── * │ │ └── _editables_from_glob │ └── _editables_from_glob └── file_config └── [*] └── _editables_from_glob- Type:
Array<_editables_from_glob[*]>- Items:
This key represents an individual glob pattern string in the
_editables_from_globarray.The value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension
.cloudcannon.editables.yml.Show examplesHide examples
In this example, we have several WYSIWYG Toolbar Configuration Files in the
.cloudcannon/editables/folder, with each file containing multiple definitions. The value of the_editables_from_globkey tells CloudCannon all files in that folder that match the glob*.cloudcannon.editables.yml.Copied to clipboard_editables_from_glob: - /.cloudcannon/editables/*.cloudcannon.editables.yml{ "_editables_from_glob": [ "/.cloudcannon/editables/*.cloudcannon.editables.yml" ] }- Examples:
In this example, we have several WYSIWYG Toolbar Configuration Files in the
.cloudcannon/editables/folder, with each file containing multiple definitions. The value of the_editables_from_globkey tells CloudCannon all files in that folder that match the glob*.cloudcannon.editables.yml.Copied to clipboard_editables_from_glob: - /.cloudcannon/editables/*.cloudcannon.editables.yml{ "_editables_from_glob": [ "/.cloudcannon/editables/*.cloudcannon.editables.yml" ] }- Copied to clipboard
text: bold: true italic: true underline: true block: format: p h3 undo: true redo: true link: bold: true italic: true underline: true{ "text": { "bold": true, "italic": true, "underline": true }, "block": { "format": "p h3", "undo": true, "redo": true }, "link": { "bold": true, "italic": true, "underline": true } }