How to add custom tags?
The Custom Tags plugin adds custom tags into the authoring canvas. The plugin allows you to add button in toolbar, invoke dialog, and apply tags in the content.
To add Custom Tags plugin to Quark Author:
- Create a folder feature in the directory qaservice/ext in the s3 bucket.
- Create a folder customTags in the folder feature.
- Add the Custom Tags plugin to the folder customTags.
The name of the folder customTags must be the same as you have specified in the file qa-config.json under the property “extensions.”
Sample qa-config.json (available for every content type)
"extensions": [
"customTags"
]
"toolbar": {
"mainTabs": [
{
"id": "home",
"label": "Home",
"type": "main",
"mode": "any",
"items": [
"customTagBtn"
]
}
]
}
The folder customTags also must contain the file “manifest.json” with the key “modules” with “type” defined as “qa-canvas-plugin” and “bundle” defined as JavaScript file path.
Sample manifest.json
{
"version": "0.0.1",
"modules": [
{
"type": "qa-canvas-plugin",
"name": "customTags",
"bundle": "customTags/plugin.js"
}
]
}