This might not be the most elegant way to achieve this, but I needed to be able to populate the content for the shortcode from the popup. Creating a field named "Content" adds shortcode content and appends a closing tag.
Example of adding field:
public function getShortcodeFields() {
return FieldList::create(
TextField::create('Content', 'Content')
);
}
This might not be the most elegant way to achieve this, but I needed to be able to populate the content for the shortcode from the popup. Creating a field named "Content" adds shortcode content and appends a closing tag.
Example of adding field:
2