If, I got right what you are asking, then the answer is that you need to create an Editor type form field, and set buttons="true"
.
Editor Form Field Type
Required:
type - this should be editor.
name - Use a unique name to define the field.
label - The label of the field - you can use translations.
Optional
width - Editor's width in pixels.
height - The height in pixels.
cols - Width in columns.
rows - Height in rows.
buttons - an array of xtd-buttons to be excluded or set to true/false.
hide - an array of xtd-buttons to hide. Set buttons="true", then hide="readmore,pagebreak,image"
editor - specifies which editor to use. (e.g. editor="jce")
filter - select the filter type e.g safehtml
description - The description that will show-up in the tooltip- when hovering over the label of the field - you can use translations.
XML Definition Example:
<field
name="myeditorfield"
label ="COM_CONTENT_MY_EDITOR_FIELD_LABEL"
type="editor"
editor="none"
buttons="true"
width="250"
height="80"
hide="image"
filter="safehtml"
description="COM_CONTENT_MY_EDITOR_FIELD_DESC" />
Notes
1. Default XTD-Editors plugins
Joomla comes with the following editors-xtd plugins: article, image, pagebreak and readmore.
2. About Translations
To use your own translations over the core components, you can create a per language override file and write there your language translations. You can use the backend language manager, or create them manually in the following locations:
Admin for english:
root/administrator/language/overrides/en-GB.override.ini
Site for english:
root/language/overrides/en-GB.override.ini
In the override.ini:
COM_CONTENT_MY_EDITOR_FIELD_LABEL = "Your field's label text"
COM_CONTENT_MY_EDITOR_FIELD_DESC = "The tooltip description text"