<html>
	<meta http-equiv="content-type" charset="utf-8">
	<head>
		<title>[Quill] WYSIWYG Test </title>
		<link rel="icon" href="/favicon.ico">
		<meta http-equiv="Expires" content="0">
		<link href="https://cdn.quilljs.com/1.3.7/quill.snow.css" rel="stylesheet">
		<!-- <link href="https://cdn.quilljs.com/1.3.7/quill.bubble.css" rel="stylesheet"> -->
	</head>
	<body>

		<div id="editor" style="height:80%;"></div>
		<br>
		<br>
		参考にしたサイト<br>
		<a href="https://qiita.com/t-kigi/items/cbb4d77352db26ea0c8a" target="_blank" rel="noopener noreferrer">https://qiita.com/t-kigi/items/cbb4d77352db26ea0c8a</a><br>
		<a href="https://blog.4breaker.com/2020/04/20/post-864/" target="_blank" rel="noopener noreferrer">https://blog.4breaker.com/2020/04/20/post-864/</a><br>

		<a href="WYSIWYG_Ckeditor_Test.html" target="_blank" rel="noopener noreferrer">「Ckeditor」</a><br>
		<a href="WYSIWYG_Vue-Quill-Editor_Test.html" target="_blank" rel="noopener noreferrer">「Vue-Quill-Editor」</a><br>
		<br>
		<br>


		<script src="https://cdn.quilljs.com/1.3.7/quill.js"></script>
		<script language="JavaScript">

			var toolbarOptions = [
			['bold', 'italic', 'underline', 'strike'],        // toggled buttons
			['blockquote', 'code-block'],

			[{ 'header': 1 }, { 'header': 2 }],               // custom button values
			[{ 'list': 'ordered'}, { 'list': 'bullet' }],
			[{ 'script': 'sub'}, { 'script': 'super' }],      // superscript/subscript
			[{ 'indent': '-1'}, { 'indent': '+1' }],          // outdent/indent
			[{ 'direction': 'rtl' }],                         // text direction

			[{ 'size': ['small', false, 'large', 'huge'] }],  // custom dropdown
			[{ 'header': [1, 2, 3, 4, 5, 6, false] }],

			[{ 'color': [] },
				{ 'color': [
					"#000000","#0000FF","#00FF00","#00FFFF","#FF0000","#FF00FF","#FFFF00",
					"#FFFFFF","#808080",
				] },
				{ 'background': [] }],          // dropdown with defaults from theme
			[{ 'font': [] }],
			[{ 'align': [] }],

			['clean']                                         // remove formatting button
			];


			var quill = new Quill('#editor', {
				theme: 'snow' ,
				//theme: 'bubble' ,
				placeholder :"ここに入力してください。",
				readOnly: false,
				modules: {
					//syntax: true , // ←???
					toolbar: toolbarOptions,
					//toolbar: [
					//	['bold', 'italic', 'underline', 'strike','code','code-block','link','blockquote','indent','list'], 
					//	[{'color': []}
					//	,{'background': []}
					//	,{'font':[]}
					//	,{'size':[]}
					//	//,{'script':[]} // ←???
					//	,{'header':[]}
					//	],
					//],
				},
			});

		</script>
	</body>
</html>
<< 広告 >>