-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
59 lines (54 loc) · 2.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./icons/cowriter-logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
const OPENAI_KEY = 'REPLACE_OPENAI_KEY'
const OPENAI_ORG = 'REPLACE_OPENAI_ORG'
</script>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.ckeditor.com/4.20.1/basic/ckeditor.js"></script>
<title>Ckeditor cowriter plugin</title>
</head>
<body class="bg-gray-100 text-gray-800 dark:text-gray-200 dark:bg-gray-800 place-content-stretch">
<header class="bg-blue-400 flex justify-center">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[144px] m-3">
<path class="fill-white dark:fill-gray-800"
d="M19,10H7V6h2c1.654,0,3-1.346,3-3s-1.346-3-3-3H3C1.346,0,0,1.346,0,3s1.346,3,3,3h2v4c-2.757,0-5,2.243-5,5v3H24v-3c0-2.757-2.243-5-5-5ZM6,15c-.552,0-1-.448-1-1s.448-1,1-1,1,.448,1,1-.448,1-1,1Zm4,0c-.552,0-1-.448-1-1s.448-1,1-1,1,.448,1,1-.448,1-1,1Zm4,0c-.552,0-1-.448-1-1s.448-1,1-1,1,.448,1,1-.448,1-1,1Zm4,0c-.552,0-1-.448-1-1s.448-1,1-1,1,.448,1,1-.448,1-1,1ZM.101,20H23.899c-.465,2.279-2.485,4-4.899,4H5c-2.414,0-4.435-1.721-4.899-4Z" />
</svg>
</header>
<main class="container mx-auto mt-6 text-center">
<h1 class="text-4xl font-thin pb-4">CK Editor plugin Cowriter</h1>
<p class="mb-6">
This plugin generates content with the help of artificial intelligence.
It is based on the <a href="http://ckeditor.com/">CKEditor 4</a>.
It uses the <a href="https://beta.openai.com/">OpenAI API</a> to generate text.
</p>
<textarea id="editor" name="editor" rows="10" cols="50"></textarea>
</main>
<footer class=" flex justify-center mt-12">
<p class="text-center text-white text-sm py-4">
<a href="https://github.com/netresearch/ckeditor-cowriter" class="text-white hover:text-gray-200">GitHub</a>
|
<a href="https://www.npmjs.com/package/@netresearch/ckeditor-cowriter"
class="text-white hover:text-gray-200">npm</a> |
<a href="https://ckeditor.com/cke4/addon/cowriter" class="text-white hover:text-gray-200 ">
CKEditor Plugin Listing
</a> |
<a href="https://www.netresearch.de/en/imprint/" class="text-white hover:text-gray-200">Imprint</a> |
<a href="https://www.netresearch.de/en/privacy-policy/" class="text-white hover:text-gray-200">Privacy
Policy</a>
</footer>
<script>
CKEDITOR.plugins.addExternal('cowriter', '/dist/', 'plugin.js')
// CKeditor 4 settings
CKEDITOR.replace('editor', {
extraPlugins: 'cowriter',
uiColor: '#bbbbbb',
height: 350,
});
</script>
</body>
</html>