HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/taxicamera/public/admin_assets/js/quill.js
/*=========================================================================================
	File Name: quill.js
	Description: Quill Editor
	----------------------------------------------------------------------------------------
	Item Name: Convex - Bootstrap 4 HTML Admin Dashboard Template
	Version: 1.0
	Author: GeeksLabs
	Author URL: http://www.themeforest.net/user/geekslabs
==========================================================================================*/
(function(window, document, $) {
	'use strict';

	var quill = new Quill('#editor-container', {
		bounds: '#editor-container',
		modules: {
			toolbar: [
				[{ header: [1, 2, false] }],
				['bold', 'italic', 'underline'],
				['image', 'code-block']
			]
		},
	  placeholder: 'Compose an epic...',
	  theme: 'snow'  // or 'bubble'
	});

	var Font = Quill.import('formats/font');
	Font.whitelist = ['sofia', 'slabo', 'roboto', 'inconsolata', 'ubuntu'];
	Quill.register(Font, true);

	var bubbleEditor = new Quill('#bubble-container .editor', {
		bounds: '#bubble-container .editor',
		modules: {
			'formula': true,
			'syntax': true
		},
		theme: 'bubble'
	});

	var snowEditor = new Quill('#snow-container .editor', {
		bounds: '#snow-container .editor',
		modules: {
			'formula': true,
			'syntax': true,
			'toolbar': '#snow-container .quill-toolbar'
		},
		theme: 'snow'
	});

	var fullEditor = new Quill('#full-container .editor', {
		bounds: '#full-container .editor',
		modules: {
			'formula': true,
			'syntax': true,
			'toolbar': [
				[{
					'font': []
				}, {
					'size': []
				}],
				['bold', 'italic', 'underline', 'strike'],
				[{
					'color': []
				}, {
					'background': []
				}],
				[{
					'script': 'super'
				}, {
					'script': 'sub'
				}],
				[{
					'header': '1'
				}, {
					'header': '2'
				}, 'blockquote', 'code-block'],
				[{
					'list': 'ordered'
				}, {
					'list': 'bullet'
				}, {
					'indent': '-1'
				}, {
					'indent': '+1'
				}],
				['direction', {
					'align': []
				}],
				['link', 'image', 'video', 'formula'],
				['clean']
			],
		},
		theme: 'snow'
	});

	var editors = [bubbleEditor, snowEditor, fullEditor];
	// switchEditor(1, snowEditor, true);

	/*var initialContent = snowEditor.getContents();
	bubbleEditor.setContents(initialContent);
	fullEditor.setContents(initialContent);*/

})(window, document, jQuery);