PHP code example of mediaweb / silverstripe-tinymce4
1. Go to this page and download the library: Download mediaweb/silverstripe-tinymce4 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mediaweb / silverstripe-tinymce4 example snippets
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->insertAfter(
CustomHTMLEditorField::create('CustomContent', 'Custom Content')->addExtraClass('stacked'),
'Content'
);
return $fields;
}