Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CKEditor 5 Custom Build
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Kaufmann
CKEditor 5 Custom Build
Commits
16194024
Commit
16194024
authored
Jul 10, 2018
by
Piotrek Koszuliński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal: Aligned code to changes in ckeditor5-core. See ckeditor/ckeditor5-core#140.
parent
393f6dd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
80 deletions
+79
-80
ckeditor.js
src/ckeditor.js
+77
-78
ckeditor.js
tests/ckeditor.js
+2
-2
No files found.
src/ckeditor.js
View file @
16194024
...
...
@@ -31,82 +31,81 @@ import TabletoolbarPlugin from '@ckeditor/ckeditor5-table/src/tabletoolbar';
export
default
class
DecoupledEditor
extends
DecoupledEditorBase
{}
DecoupledEditor
.
build
=
{
plugins
:
[
EssentialsPlugin
,
AlignmentPlugin
,
FontsizePlugin
,
FontfamilyPlugin
,
HighlightPlugin
,
UploadadapterPlugin
,
AutoformatPlugin
,
BoldPlugin
,
ItalicPlugin
,
StrikethroughPlugin
,
UnderlinePlugin
,
BlockquotePlugin
,
EasyimagePlugin
,
HeadingPlugin
,
ImagePlugin
,
ImagecaptionPlugin
,
ImagestylePlugin
,
ImagetoolbarPlugin
,
ImageuploadPlugin
,
LinkPlugin
,
ListPlugin
,
ParagraphPlugin
,
TablePlugin
,
TabletoolbarPlugin
],
config
:
{
toolbar
:
{
items
:
[
'heading'
,
'|'
,
'fontsize'
,
'fontfamily'
,
'|'
,
'bold'
,
'italic'
,
'underline'
,
'strikethrough'
,
'highlight'
,
'|'
,
'alignment'
,
'|'
,
'numberedList'
,
'bulletedList'
,
'|'
,
'link'
,
'blockquote'
,
'imageUpload'
,
'insertTable'
,
'|'
,
'undo'
,
'redo'
]
},
image
:
{
styles
:
[
'full'
,
'alignLeft'
,
'alignRight'
],
toolbar
:
[
'imageStyle:alignLeft'
,
'imageStyle:full'
,
'imageStyle:alignRight'
,
'|'
,
'imageTextAlternative'
]
},
table
:
{
toolbar
:
[
'tableColumn'
,
'tableRow'
,
'mergeTableCells'
]
},
language
:
'en'
}
DecoupledEditor
.
builtinPlugins
=
[
EssentialsPlugin
,
AlignmentPlugin
,
FontsizePlugin
,
FontfamilyPlugin
,
HighlightPlugin
,
UploadadapterPlugin
,
AutoformatPlugin
,
BoldPlugin
,
ItalicPlugin
,
StrikethroughPlugin
,
UnderlinePlugin
,
BlockquotePlugin
,
EasyimagePlugin
,
HeadingPlugin
,
ImagePlugin
,
ImagecaptionPlugin
,
ImagestylePlugin
,
ImagetoolbarPlugin
,
ImageuploadPlugin
,
LinkPlugin
,
ListPlugin
,
ParagraphPlugin
,
TablePlugin
,
TabletoolbarPlugin
];
DecoupledEditor
.
defaultConfig
=
{
toolbar
:
{
items
:
[
'heading'
,
'|'
,
'fontsize'
,
'fontfamily'
,
'|'
,
'bold'
,
'italic'
,
'underline'
,
'strikethrough'
,
'highlight'
,
'|'
,
'alignment'
,
'|'
,
'numberedList'
,
'bulletedList'
,
'|'
,
'link'
,
'blockquote'
,
'imageUpload'
,
'insertTable'
,
'|'
,
'undo'
,
'redo'
]
},
image
:
{
styles
:
[
'full'
,
'alignLeft'
,
'alignRight'
],
toolbar
:
[
'imageStyle:alignLeft'
,
'imageStyle:full'
,
'imageStyle:alignRight'
,
'|'
,
'imageTextAlternative'
]
},
table
:
{
toolbar
:
[
'tableColumn'
,
'tableRow'
,
'mergeTableCells'
]
},
language
:
'en'
};
tests/ckeditor.js
View file @
16194024
...
...
@@ -27,11 +27,11 @@ describe( 'DecoupledEditor build', () => {
describe
(
'buid'
,
()
=>
{
it
(
'contains plugins'
,
()
=>
{
expect
(
DecoupledEditor
.
buil
d
.
p
lugins
).
to
.
not
.
be
.
empty
;
expect
(
DecoupledEditor
.
buil
tinP
lugins
).
to
.
not
.
be
.
empty
;
}
);
it
(
'contains config'
,
()
=>
{
expect
(
DecoupledEditor
.
build
.
c
onfig
.
toolbar
).
to
.
not
.
be
.
empty
;
expect
(
DecoupledEditor
.
defaultC
onfig
.
toolbar
).
to
.
not
.
be
.
empty
;
}
);
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment