Skip to content

Commit

Permalink
Merge pull request #17473 from ckeditor/ck/6792
Browse files Browse the repository at this point in the history
Internal: Add licenseKey to CDN index page. Closes cksource/ckeditor5-commercial#6792
  • Loading branch information
Mati365 authored Nov 15, 2024
2 parents 3424ecb + 125e27f commit b6f6dcb
Showing 1 changed file with 48 additions and 47 deletions.
95 changes: 48 additions & 47 deletions scripts/release/assets/zip/index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CKEditor 5 - Quick start ZIP</title>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CKEditor 5 - Quick start ZIP</title>
<link rel="stylesheet" href="./ckeditor5/ckeditor5.css">
<style>
.main-container {
width: 795px;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div class="main-container">
<div id="editor">
<p>Hello from CKEditor 5!</p>
</div>
<style>
.main-container {
width: 795px;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div class="main-container">
<div id="editor">
<p>Hello from CKEditor 5!</p>
</div>
</div>
<script type="importmap">
{
Expand All @@ -27,39 +27,40 @@
}
}
</script>
<script type="module">
import {
ClassicEditor,
Essentials,
Paragraph,
Bold,
Italic,
Font
} from 'ckeditor5';
<script type="module">
import {
ClassicEditor,
Essentials,
Paragraph,
Bold,
Italic,
Font
} from 'ckeditor5';

ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ Essentials, Paragraph, Bold, Italic, Font ],
toolbar: [
ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ Essentials, Paragraph, Bold, Italic, Font ],
toolbar: [
'undo', 'redo', '|', 'bold', 'italic', '|',
'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor'
]
} )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( error );
} );
</script>
<!-- A friendly reminder to run on a server, remove this during the integration. -->
<script>
window.onload = function() {
if ( window.location.protocol === "file:" ) {
alert( "This sample requires an HTTP server. Please serve this file with a web server." );
}
};
],
licenseKey: 'GPL'
} )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( error );
} );
</script>
<!-- A friendly reminder to run on a server, remove this during the integration. -->
<script>
window.onload = function() {
if ( window.location.protocol === "file:" ) {
alert( "This sample requires an HTTP server. Please serve this file with a web server." );
}
};
</script>
</body>
</body>
</html>

0 comments on commit b6f6dcb

Please sign in to comment.