---
url: /api/renderers/tinymce/src/functions/createComponentsPlugin.md
---
[pantoken-root](../../../../index.md) / [renderers/tinymce/src](../index.md) / createComponentsPlugin

# Function: createComponentsPlugin()

> **createComponentsPlugin**(`options`): (`editor`) => `void`

Create the components picker plugin factory.
Returns a function suitable for `tinymce.PluginManager.add()`.

Usage:
tinymce.PluginManager.add(
"pantokenComponents",
createComponentsPlugin(`{ model, currentAssets, onMissingAsset }`)
);

## Parameters

### options

`ComponentsPickerOptions`

## Returns

(`editor`) => `void`
