| 
														
															@@ -64,7 +64,7 @@ const getTitle = () => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	return title; 
														 | 
														
														 | 
														
															 	return title; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 }; 
														 | 
														
														 | 
														
															 }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-const { inputs, save, setModelValues } = useForm( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+const { inputs, saveButton, save, setModelValues } = useForm( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	{ 
														 | 
														
														 | 
														
															 	{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		markdown: { 
														 | 
														
														 | 
														
															 		markdown: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			value: "# Header\n## Sub-Header\n- **So**\n- _Many_\n- ~Points~\n\nOther things you want to say and [link](https://example.com).\n\n### Sub-Sub-Header\n> Oh look, a quote!\n\n`lil code`\n\n```\nbig code\n```\n", 
														 | 
														
														 | 
														
															 			value: "# Header\n## Sub-Header\n- **So**\n- _Many_\n- ~Points~\n\nOther things you want to say and [link](https://example.com).\n\n### Sub-Sub-Header\n> Oh look, a quote!\n\n`lil code`\n\n```\nbig code\n```\n", 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -156,23 +156,21 @@ onMounted(async () => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<template #body> 
														 | 
														
														 | 
														
															 		<template #body> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<div class="left-section" v-show="canShow"> 
														 | 
														
														 | 
														
															 			<div class="left-section" v-show="canShow"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<p><strong>Markdown</strong></p> 
														 | 
														
														 | 
														
															 				<p><strong>Markdown</strong></p> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				<textarea v-model="inputs['markdown'].value"></textarea> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				<textarea v-model="inputs.markdown.value"></textarea> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			</div> 
														 | 
														
														 | 
														
															 			</div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<div class="right-section" v-show="canShow"> 
														 | 
														
														 | 
														
															 			<div class="right-section" v-show="canShow"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<p><strong>Preview</strong></p> 
														 | 
														
														 | 
														
															 				<p><strong>Preview</strong></p> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<div 
														 | 
														
														 | 
														
															 				<div 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					class="news-item" 
														 | 
														
														 | 
														
															 					class="news-item" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					id="preview" 
														 | 
														
														 | 
														
															 					id="preview" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					v-html=" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						DOMPurify.sanitize(marked(inputs['markdown'].value)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					v-html="DOMPurify.sanitize(marked(inputs.markdown.value))" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				></div> 
														 | 
														
														 | 
														
															 				></div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			</div> 
														 | 
														
														 | 
														
															 			</div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		</template> 
														 | 
														
														 | 
														
															 		</template> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		<template #footer> 
														 | 
														
														 | 
														
															 		<template #footer> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			<div> 
														 | 
														
														 | 
														
															 			<div> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<p class="control select"> 
														 | 
														
														 | 
														
															 				<p class="control select"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					<select v-model="inputs['status'].value"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					<select v-model="inputs.status.value"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						<option value="draft">Draft</option> 
														 | 
														
														 | 
														
															 						<option value="draft">Draft</option> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						<option value="published" selected>Publish</option> 
														 | 
														
														 | 
														
															 						<option value="published" selected>Publish</option> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					</select> 
														 | 
														
														 | 
														
															 					</select> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -183,7 +181,7 @@ onMounted(async () => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						<input 
														 | 
														
														 | 
														
															 						<input 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							type="checkbox" 
														 | 
														
														 | 
														
															 							type="checkbox" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 							id="show-to-new-users" 
														 | 
														
														 | 
														
															 							id="show-to-new-users" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-							v-model="inputs['showToNewUsers'].value" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+							v-model="inputs.showToNewUsers.value" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						/> 
														 | 
														
														 | 
														
															 						/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						<span class="slider round"></span> 
														 | 
														
														 | 
														
															 						<span class="slider round"></span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					</label> 
														 | 
														
														 | 
														
															 					</label> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -193,17 +191,18 @@ onMounted(async () => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					</label> 
														 | 
														
														 | 
														
															 					</label> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				</p> 
														 | 
														
														 | 
														
															 				</p> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				<save-button 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					ref="saveButton" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				<SaveButton 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					v-if="createNews" 
														 | 
														
														 | 
														
															 					v-if="createNews" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					ref="saveButton" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					@clicked="save()" 
														 | 
														
														 | 
														
															 					@clicked="save()" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				/> 
														 | 
														
														 | 
														
															 				/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				<save-button 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				<SaveButton 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					ref="saveAndCloseButton" 
														 | 
														
														 | 
														
															 					ref="saveAndCloseButton" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					default-message="Save and close" 
														 | 
														
														 | 
														
															 					default-message="Save and close" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					@clicked="save(closeCurrentModal)" 
														 | 
														
														 | 
														
															 					@clicked="save(closeCurrentModal)" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				/> 
														 | 
														
														 | 
														
															 				/> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				<div class="right" v-if="createdAt > 0"> 
														 | 
														
														 | 
														
															 				<div class="right" v-if="createdAt > 0"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					<span> 
														 | 
														
														 | 
														
															 					<span> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 						By  
														 | 
														
														 | 
														
															 						By  
														 |