PHP code example of gurucomkz / silverstripe-blobpasteupload
1. Go to this page and download the library: Download gurucomkz/silverstripe-blobpasteupload 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/ */
gurucomkz / silverstripe-blobpasteupload example snippets
$myStyle = '...path...'; #this is your stylesheet file URL
$tinymceconfig = TinyMCEConfig::get('cms'); # get instance
$contentCSS = $tinymceconfig->getContentCSS(); # get current list
if(!is_array($contentCSS)) $contentCSS = []; #check for array
$contentCSS[] = $myStyle; #HERE we append your file - repeat for every file
$tinymceconfig->setContentCSS($contentCSS); #save again