33< head >
44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6- < title > Blazer Markdown Editor Sample</ title >
7- < link rel ="stylesheet " href ="../../wwwroot/blazer -markdown-editor.css ">
6+ < title > Blazor Markdown Editor Sample</ title >
7+ < link rel ="stylesheet " href ="../../wwwroot/blazor -markdown-editor.css ">
88 < style >
99 : root {
1010 --bg : # f4f7f9 ;
156156</ head >
157157< body >
158158 < main class ="shell ">
159- < h1 > Blazer Markdown Editor Test</ h1 >
159+ < h1 > Blazor Markdown Editor Test</ h1 >
160160 < p class ="subtitle "> This sample uses the bundled build outputs from the repository wwwroot folder.</ p >
161161
162162 < div class ="toolbar ">
@@ -180,7 +180,7 @@ <h1>Blazer Markdown Editor Test</h1>
180180 </ p >
181181 </ main >
182182
183- < script src ="../../wwwroot/blazer -markdown-editor.js "> </ script >
183+ < script src ="../../wwwroot/blazor -markdown-editor.js "> </ script >
184184 < script >
185185 const initialMarkdown = `# Markdown Editor
186186
@@ -240,7 +240,7 @@ <h1>Blazer Markdown Editor Test</h1>
240240 const editorHost = document . getElementById ( "editor" ) ;
241241 const markdownView = document . getElementById ( "markdownView" ) ;
242242
243- const editorId = window . blazerMarkdownEditor . create ( editorHost , {
243+ const editorId = window . blazorMarkdownEditor . create ( editorHost , {
244244 markdown : initialMarkdown ,
245245 } ) ;
246246
@@ -252,7 +252,7 @@ <h1>Blazer Markdown Editor Test</h1>
252252
253253 function switchToCodeMode ( ) {
254254 if ( mode === "code" ) return ;
255- markdownView . value = window . blazerMarkdownEditor . getMarkdown ( editorId ) ;
255+ markdownView . value = window . blazorMarkdownEditor . getMarkdown ( editorId ) ;
256256 editorHost . style . display = "none" ;
257257 markdownView . style . display = "block" ;
258258 markdownView . focus ( ) ;
@@ -262,17 +262,17 @@ <h1>Blazer Markdown Editor Test</h1>
262262
263263 function switchToLiveMode ( ) {
264264 if ( mode === "live" ) return ;
265- window . blazerMarkdownEditor . setMarkdown ( editorId , markdownView . value ) ;
265+ window . blazorMarkdownEditor . setMarkdown ( editorId , markdownView . value ) ;
266266 markdownView . style . display = "none" ;
267267 editorHost . style . display = "block" ;
268- window . blazerMarkdownEditor . focus ( editorId ) ;
268+ window . blazorMarkdownEditor . focus ( editorId ) ;
269269 mode = "live" ;
270270 setStatus ( "Live mode enabled." ) ;
271271 }
272272
273273 async function copyMarkdown ( ) {
274274 const text = mode === "live"
275- ? window . blazerMarkdownEditor . getMarkdown ( editorId )
275+ ? window . blazorMarkdownEditor . getMarkdown ( editorId )
276276 : markdownView . value ;
277277
278278 try {
@@ -284,7 +284,7 @@ <h1>Blazer Markdown Editor Test</h1>
284284 }
285285
286286 function resetContent ( ) {
287- window . blazerMarkdownEditor . setMarkdown ( editorId , initialMarkdown ) ;
287+ window . blazorMarkdownEditor . setMarkdown ( editorId , initialMarkdown ) ;
288288 if ( mode === "code" ) {
289289 markdownView . value = initialMarkdown ;
290290 }
@@ -297,7 +297,7 @@ <h1>Blazer Markdown Editor Test</h1>
297297 document . getElementById ( "btnReset" ) . addEventListener ( "click" , resetContent ) ;
298298
299299 window . addEventListener ( "beforeunload" , ( ) => {
300- window . blazerMarkdownEditor . destroy ( editorId ) ;
300+ window . blazorMarkdownEditor . destroy ( editorId ) ;
301301 } ) ;
302302 </ script >
303303</ body >
0 commit comments