ckEditor 5 wo images
This commit is contained in:
39
README.md
39
README.md
@@ -93,7 +93,7 @@ git submodule add https://git.seemsleg.it/ef/cssjs-func-lib cssjs
|
|||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
## WYSIWYG
|
## WYSIWYG (old)
|
||||||
```
|
```
|
||||||
<link rel="stylesheet" type="text/css" href="/cssjs/wysiwyg.css">
|
<link rel="stylesheet" type="text/css" href="/cssjs/wysiwyg.css">
|
||||||
...
|
...
|
||||||
@@ -101,3 +101,40 @@ git submodule add https://git.seemsleg.it/ef/cssjs-func-lib cssjs
|
|||||||
...
|
...
|
||||||
<script src='/cssjs/wysiwyg.js'></script>
|
<script src='/cssjs/wysiwyg.js'></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## ckEditor5
|
||||||
|
```
|
||||||
|
<script src="ckeditor.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
ClassicEditor
|
||||||
|
.create( document.querySelector( '#editor' ), {
|
||||||
|
toolbar: {
|
||||||
|
items: [
|
||||||
|
'heading',
|
||||||
|
'|',
|
||||||
|
'bold',
|
||||||
|
'italic',
|
||||||
|
'|',
|
||||||
|
'bulletedList',
|
||||||
|
'numberedList',
|
||||||
|
'|',
|
||||||
|
'insertTable',
|
||||||
|
'|',
|
||||||
|
'undo',
|
||||||
|
'redo'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
table: {
|
||||||
|
contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
|
||||||
|
},
|
||||||
|
language: 'de'
|
||||||
|
} )
|
||||||
|
.then( editor => {
|
||||||
|
window.editor = editor;
|
||||||
|
} )
|
||||||
|
.catch( err => {
|
||||||
|
console.error( err.stack );
|
||||||
|
} );
|
||||||
|
</script>
|
||||||
|
```
|
||||||
6
ckeditor.js
vendored
Normal file
6
ckeditor.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user