more module previews

This commit is contained in:
2021-01-29 13:07:04 +01:00
parent fe19e3c238
commit 44b6e6109f
6 changed files with 114 additions and 0 deletions
+11
View File
@@ -26,6 +26,7 @@ import Modules from '../editor/fields/modules.vue';
import Nested from '../editor/fields/nested.vue';
import State from '../editor/fields/state.vue';
import Tags from '../editor/fields/tags.vue';
import Link from '../editor/fields/link.vue';
class EditorField
@@ -214,6 +215,16 @@ class EditorField
}
/**
* Render a link picker
* @returns {EditorField}
*/
linkPicker()
{
return this._setComponent(Link, {});
}
/**
* @typedef {object} EditorSelectItem
* @param {object} key - Key/Id of the item