https://github.com/philippfrenzel/yii2ipicture
yii2ipicture
https://github.com/philippfrenzel/yii2ipicture
Last synced: 2 months ago
JSON representation
yii2ipicture
- Host: GitHub
- URL: https://github.com/philippfrenzel/yii2ipicture
- Owner: philippfrenzel
- License: gpl-2.0
- Created: 2014-03-05T15:42:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-06T20:24:28.000Z (over 11 years ago)
- Last Synced: 2025-02-16T18:19:49.713Z (5 months ago)
- Language: JavaScript
- Size: 7.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2pinit
=========Pin It Button for Yii2
Setup
=====Pls add the image you want to show as overlay to your pictures within the folder
web/img/pinterest.png
Should be interlaced and not to big;)
Sample CKEDITOR
===============```php
$pinterest = <<< SCRIPT
{instanceReady: function() {
this.dataProcessor.htmlFilter.addRules({
elements: {
img: function( el ) {
if ( !el.attributes.alt )
el.attributes.alt = 'pinterest-image';
var fragment = CKEDITOR.htmlParser.fragment.fromHtml( ''+el.getOuterHtml()+'' );
el.replaceWith(fragment);
}
}
});
}}
SCRIPT;
```