style(client-side): run prettier on tinymce configs
This commit is contained in:
		
							parent
							
								
									662a97ffc5
								
							
						
					
					
						commit
						5a5719dc52
					
				| @ -1,61 +1,76 @@ | |||||||
| export const fancy = { | export const fancy = { | ||||||
| 	branding: false, | 	branding: false, | ||||||
| 	selector: 'textarea#txt', | 	selector: "textarea#txt", | ||||||
| 	menubar: false, | 	menubar: false, | ||||||
| 	elementpath: false, | 	elementpath: false, | ||||||
| 	formats: { | 	formats: { | ||||||
| 		bold: { | 		bold: { | ||||||
| 			inline: 'b' | 			inline: "b", | ||||||
| 		}, | 		}, | ||||||
| 		italic: { | 		italic: { | ||||||
| 			inline: 'i' | 			inline: "i", | ||||||
| 		}, | 		}, | ||||||
| 		underline: { | 		underline: { | ||||||
| 			inline: 'u' | 			inline: "u", | ||||||
| 		} |  | ||||||
| 		}, | 		}, | ||||||
| 	schema: 'html5', | 	}, | ||||||
|  | 	schema: "html5", | ||||||
| 	custom_colors: true, | 	custom_colors: true, | ||||||
| 	style_formats: [ | 	style_formats: [ | ||||||
| 		// { title: 'Image formats' },
 | 		// { title: 'Image formats' },
 | ||||||
| 		{ | 		{ | ||||||
| 			title: 'Blocks', | 			title: "Blocks", | ||||||
| 			items: [ | 			items: [ | ||||||
| 				{ title: 'p', block: 'p' }, | 				{ title: "p", block: "p" }, | ||||||
| 				{ title: 'div', block: 'div' }, | 				{ title: "div", block: "div" }, | ||||||
| 				{ title: 'pre', block: 'pre' } | 				{ title: "pre", block: "pre" }, | ||||||
| 			] | 			], | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			title: "Image", | 			title: "Image", | ||||||
| 			items: [ | 			items: [ | ||||||
| 				{ title: 'Image Left', selector: 'img', styles: { 'float': 'left', 'margin': '0 10px 0 10px' } }, | 				{ | ||||||
| 				{ title: 'Image Right', selector: 'img', styles: { 'float': 'right', 'margin': '0 0 10px 10px' } }, | 					title: "Image Left", | ||||||
| 				{ title: 'Rounded corners', styles: { 'border-radius': '0.7em'} } | 					selector: "img", | ||||||
| 			] | 					styles: { float: "left", margin: "0 10px 0 10px" }, | ||||||
|  | 				}, | ||||||
|  | 				{ | ||||||
|  | 					title: "Image Right", | ||||||
|  | 					selector: "img", | ||||||
|  | 					styles: { float: "right", margin: "0 0 10px 10px" }, | ||||||
|  | 				}, | ||||||
|  | 				{ title: "Rounded corners", styles: { "border-radius": "0.7em" } }, | ||||||
|  | 			], | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			title: "Code/Monospace", | ||||||
|  | 			selector: "p,div,h1,h2,h3,h4,h5,h6", | ||||||
|  | 			classes: ["font-mono"], | ||||||
| 		}, | 		}, | ||||||
| 		{ title: 'Code/Monospace', selector: "p,div,h1,h2,h3,h4,h5,h6", classes: [ 'font-mono' ] }, |  | ||||||
| 	], | 	], | ||||||
| 	toolbar_groups: { | 	toolbar_groups: { | ||||||
| 		alignment: { | 		alignment: { | ||||||
| 			icon: 'align-left', | 			icon: "align-left", | ||||||
| 			tooltip: "Alignment", | 			tooltip: "Alignment", | ||||||
| 			items: "alignleft aligncenter alignright | alignjustify" | 			items: "alignleft aligncenter alignright | alignjustify", | ||||||
| 		}, | 		}, | ||||||
| 		heading: { | 		heading: { | ||||||
| 			icon: 'format', | 			icon: "format", | ||||||
| 			tooltip: 'Header', | 			tooltip: "Header", | ||||||
| 			items: 'h1 h2 h3 h4 h5 h6' | 			items: "h1 h2 h3 h4 h5 h6", | ||||||
| 		} |  | ||||||
| 		}, | 		}, | ||||||
| 	toolbar: "undo redo | paste | bold italic underline | hr image link | forecolor styles | heading alignment | code", | 	}, | ||||||
| 	contextmenu: 'bold italic underline | hr | link | image | paste', | 	toolbar: | ||||||
|  | 		"undo redo | paste | bold italic underline | hr image link | forecolor styles | heading alignment | code", | ||||||
|  | 	contextmenu: "bold italic underline | hr | link | image | paste", | ||||||
| 	external_plugins: { | 	external_plugins: { | ||||||
| 		"mentions": "/plugins/mentions/plugin.min.js" | 		mentions: "/plugins/mentions/plugin.min.js", | ||||||
| 	}, | 	}, | ||||||
| 	plugins: | 	plugins: | ||||||
| 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks advcode fullscreen insertdatetime media table help wordcount save mentions`.split(" ") | 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks advcode fullscreen insertdatetime media table help wordcount save mentions`.split( | ||||||
| } | 			" ", | ||||||
|  | 		), | ||||||
|  | }; | ||||||
| export const comment = { | export const comment = { | ||||||
| 	branding: false, | 	branding: false, | ||||||
| 	height: 200, | 	height: 200, | ||||||
| @ -63,52 +78,57 @@ export const comment = { | |||||||
| 	elementpath: false, | 	elementpath: false, | ||||||
| 	formats: { | 	formats: { | ||||||
| 		bold: { | 		bold: { | ||||||
| 			inline: 'b' | 			inline: "b", | ||||||
| 		}, | 		}, | ||||||
| 		italic: { | 		italic: { | ||||||
| 			inline: 'i' | 			inline: "i", | ||||||
| 		}, | 		}, | ||||||
| 		underline: { | 		underline: { | ||||||
| 			inline: 'u' | 			inline: "u", | ||||||
| 		} | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	external_plugins: { | 	external_plugins: { | ||||||
| 		"mentions": "/plugins/mentions/plugin.min.js" | 		mentions: "/plugins/mentions/plugin.min.js", | ||||||
| 	}, | 	}, | ||||||
| 	schema: 'html5', | 	schema: "html5", | ||||||
| 	plugins: | 	plugins: | ||||||
| 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table code help save mentions`.split(" "), | 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table code help save mentions`.split( | ||||||
| 	toolbar: 'bold italic underline | link', | 			" ", | ||||||
| 	contextmenu: 'bold italic underline | paste | link' | 		), | ||||||
| } | 	toolbar: "bold italic underline | link", | ||||||
|  | 	contextmenu: "bold italic underline | paste | link", | ||||||
|  | }; | ||||||
| 
 | 
 | ||||||
| export const story = { | export const story = { | ||||||
| 	branding: false, | 	branding: false, | ||||||
| 	selector: 'textarea#txt', | 	selector: "textarea#txt", | ||||||
| 	height: 500, | 	height: 500, | ||||||
| 	menubar: false, | 	menubar: false, | ||||||
| 	elementpath: false, | 	elementpath: false, | ||||||
| 	formats: { | 	formats: { | ||||||
| 		bold: { | 		bold: { | ||||||
| 				inline: 'b' | 			inline: "b", | ||||||
| 		}, | 		}, | ||||||
| 		italic: { | 		italic: { | ||||||
| 				inline: 'i' | 			inline: "i", | ||||||
| 		}, | 		}, | ||||||
| 		underline: { | 		underline: { | ||||||
| 				inline: 'u' | 			inline: "u", | ||||||
| 			} | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	content_css: ["/test.css", "/quickfix.css"], | 	content_css: ["/test.css", "/quickfix.css"], | ||||||
| 	schema: 'html5', | 	schema: "html5", | ||||||
| 	plugins: | 	plugins: | ||||||
| 			`advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table advcode help wordcount save`.split(" "), | 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table advcode help wordcount save`.split( | ||||||
| 		toolbar: 'undo redo | paste |' + | 			" ", | ||||||
| 		'bold italic underline | hr | alignleft aligncenter ' + | 		), | ||||||
| 		'alignright alignjustify | ' + | 	toolbar: | ||||||
| 		'| code', | 		"undo redo | paste |" + | ||||||
| 	contextmenu: 'bold italic underline | hr | paste | link' | 		"bold italic underline | hr | alignleft aligncenter " + | ||||||
| } | 		"alignright alignjustify | " + | ||||||
|  | 		"| code", | ||||||
|  | 	contextmenu: "bold italic underline | hr | paste | link", | ||||||
|  | }; | ||||||
| export const bare = { | export const bare = { | ||||||
| 	branding: false, | 	branding: false, | ||||||
| 	height: 200, | 	height: 200, | ||||||
| @ -116,21 +136,23 @@ export const bare = { | |||||||
| 	elementpath: false, | 	elementpath: false, | ||||||
| 	formats: { | 	formats: { | ||||||
| 		bold: { | 		bold: { | ||||||
| 			inline: 'b' | 			inline: "b", | ||||||
| 		}, | 		}, | ||||||
| 		italic: { | 		italic: { | ||||||
| 			inline: 'i' | 			inline: "i", | ||||||
| 		}, | 		}, | ||||||
| 		underline: { | 		underline: { | ||||||
| 			inline: 'u' | 			inline: "u", | ||||||
| 		} |  | ||||||
| 		}, | 		}, | ||||||
| 	schema: 'html5', | 	}, | ||||||
|  | 	schema: "html5", | ||||||
| 	external_plugins: { | 	external_plugins: { | ||||||
| 		"mentions": "/plugins/mentions/plugin.min.js" | 		mentions: "/plugins/mentions/plugin.min.js", | ||||||
| 	}, | 	}, | ||||||
| 	plugins: | 	plugins: | ||||||
| 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table advcode help save mentions`.split(" "), | 		`advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table advcode help save mentions`.split( | ||||||
| 	toolbar: 'bold italic underline | hr link', | 			" ", | ||||||
| 	contextmenu: 'bold italic underline | paste | hr link' | 		), | ||||||
| } | 	toolbar: "bold italic underline | hr link", | ||||||
|  | 	contextmenu: "bold italic underline | paste | hr link", | ||||||
|  | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user