Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corpsepk/yii-textmistake
Text-mistake extension for Yii framework
https://github.com/corpsepk/yii-textmistake
Last synced: 12 days ago
JSON representation
Text-mistake extension for Yii framework
- Host: GitHub
- URL: https://github.com/corpsepk/yii-textmistake
- Owner: corpsepk
- Created: 2014-12-25T13:52:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-25T14:43:18.000Z (almost 10 years ago)
- Last Synced: 2024-10-26T10:45:25.002Z (2 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yii-textmistake
===============#Source and demo
http://tarampampam.github.io/jquery.textmistake/#Install
Copy extension to ```application.extensions``` folder#How to use
```php
$this->widget('ext.textmistake.TextMistakeWidget');?>
```#Supported options
```
{
'l10n': {
'title': 'Report a typo author:',
'urlHint': 'Url of the page with error:',
'errTextHint': 'Text with the error:',
'yourComment': 'Your comment:',
'userComment': 'Comment by user:',
'commentPlaceholder': 'Type comment',
'cancel': 'Cancel',
'send': 'Send',
'mailSubject': 'Typo on the site',
'mailTitle': 'Typo on the site',
'mailSended': 'Notification sent',
'mailSendedDesc': 'Your notification has been sent successfully. Thank you for your feedback!',
'mailNotSended': 'Sending error',
'mailNotSendedDesc': 'Your message has not been sent, sorry.',
},
'debug': false,
'initCss': true,
'initHtml': true,
'overlayColor': '#666',
'overlayOpacity': 0.5,
'windowZindex': 10001,
'hideBodyScroll': true,
'textLimit': 400,
'contextLength': 40,
'closeOnEsc': true,
'mailTo': '',
'mailFrom': 'textmistake@'+window.location.hostname,
'mandrillKey': '',
'sendmailUrl': '',
'animateSpeed': 0,
'autocloseTime': 10000,
'onShow': function(state){},
'onHide': function(state){},
'onLoadingShow': function(state){},
'onLoadingHide': function(state){},
'onCtrlEnter': function(){},
'onEscPressed': function(){},
'onSendMail': function(response){},
'onAjaxDone': function(response){},
'onAjaxResultError': function(response){},
'onAjaxSendError': function(response){},
}
```