Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newset/angular-redactor
Redactor Angluar directive
https://github.com/newset/angular-redactor
Last synced: 2 days ago
JSON representation
Redactor Angluar directive
- Host: GitHub
- URL: https://github.com/newset/angular-redactor
- Owner: newset
- Created: 2015-05-14T03:35:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-14T06:39:42.000Z (over 9 years ago)
- Last Synced: 2024-04-17T05:48:14.552Z (7 months ago)
- Language: CSS
- Homepage: http://newset.github.io/angular-redactor/
- Size: 465 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-redactor
### 文件管理
fileUpload: '/upload.php',
fileManagerJson: '/files/files.json',[
{ "title": "Some Image", "name": "1.jpg", "link": "/images/1.jpg", "size": "301Kb" },
{ "title": "My Book", "name": "my-book.pdf", "link": "/files/my-book.pdf", "size": "1MB" }
]### 图片管理数据格式 和设置
{
imageUpload: '/upload.php',
imageManagerJson: '/images/images.json',
plugins: ['imagemanager']
}[
{ "thumb": "1m.jpg", "image": "1.jpg", "title": "Image 1" },
{ "thumb": "2m.jpg", "image": "2.jpg", "title": "Image 2" }
]### Limiter
limiter: 20, // number of characters
plugins: ['limiter']### counter
counterCallback: function(data)
{
console.log('Words: ' + data.words);
console.log('Characters: ' + data.characters);
console.log('Characters w/o spaces: ' + (data.characters - data.spaces));
}