Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DennisSuitters/summernote-video-attributes
Adds Button to Insert Video URL's and Player Options
https://github.com/DennisSuitters/summernote-video-attributes
addon attributes plugin summernote summernote-plugins summernote-video-attributes toolbar video wysiwyg
Last synced: 3 months ago
JSON representation
Adds Button to Insert Video URL's and Player Options
- Host: GitHub
- URL: https://github.com/DennisSuitters/summernote-video-attributes
- Owner: DennisSuitters
- License: mit
- Created: 2016-11-29T02:35:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-07T03:03:38.000Z (8 months ago)
- Last Synced: 2024-05-03T05:09:05.628Z (6 months ago)
- Topics: addon, attributes, plugin, summernote, summernote-plugins, summernote-video-attributes, toolbar, video, wysiwyg
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 12
- Watchers: 3
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-summernote - summernote-video-attributes
README
# summernote-video-attributes
A plugin for the [Summernote](https://github.com/summernote/summernote/) WYSIWYG editor.Adds a button to the Summernote Toolbar that allows editing video service settings and some embedding attribute.
### Installation
#### 1. Include JS
Include the following code after Summernote:
```html
```
#### 2. Supported languages
Currently available in English.
#### 3. Summernote options
Finally, customize the Summernote image popover.
```javascript
$(document).ready(function() {
$('#summernote').summernote({
toolbar:[
... Your other toolbar options
['insert',['videoAttributes','media','link','hr']],
... Your other toolbar options
]
});
});
```#### 4. summernote-video-attributesoptions
- showVideoSize [boolean]: the video size selection
- showVideoAlignment [boolean]: shows the alignment options
- showSuggestedVideos [boolean]: shows the checkbox for suggested videos
- showPlayerControls [boolean]: shows the checkbox for player controls
- showAutoplay [boolean]: shows the checkbox for autoplay
- showLoop [boolean]: shows the checkbox for playing in a loop
- videoUrls [list of strings]: instead of allowing the user to enter the video URLs, you can preset the options of the URL value so the user can only choose from this list. A potential usage is to allow user to select from a list of stored assets.#### 5. Check out our other Summernote Plugins via our main Github page.
- [Diemen Design](https://github.com/DiemenDesign/)