This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Nightjar\SS4UpgradeTasks; | |
use Monolog\Handler\StreamHandler; | |
use Monolog\Logger; | |
use Psr\Log\LoggerInterface; | |
use SilverStripe\Assets\File; | |
use SilverStripe\Control\Director; | |
use SilverStripe\Core\ClassInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Config; | |
use SilverStripe\Core\Manifest\ModuleLoader; | |
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig; | |
class EditorConfig | |
{ | |
public static function setAllEditors() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the following methods to your `Image` subclass to allow SVG uploads via `$has_one` `UploadField`'s and uploads via the Asset Admin. | |
Hat-tip to https://github.com/restruct/silverstripe-svg-images. All I've done is: | |
* Removed superfluous SVG template logic | |
* Called `isSVG()` from everywhere | |
* Added comments where appropriate | |
* Put all necessary YML config into one place | |
YML config: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Beta | |
* | |
* Sibling of netteForms.js "rewritten to jQuery" | |
* @author Pavel Kučera | |
* @author David Grudl author of netteForms.js, of the idea and the one who I copied from | |
* | |
* Disclaimer: I'm not a javascript programmer, actually I hate javascript, so consider that please if you want to complain about quality of this utility. | |
* | |
* Dependencies |