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
de643f88
Unverified
Commit
de643f88
authored
Mar 12, 2018
by
Aleksander Nowodzinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Added missing feature tests.
parent
51a68727
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
ckeditor.js
tests/ckeditor.js
+30
-0
ckeditor.js
tests/manual/ckeditor.js
+1
-1
No files found.
tests/ckeditor.js
View file @
de643f88
...
@@ -90,6 +90,8 @@ describe( 'DecoupledDocumentEditor build', () => {
...
@@ -90,6 +90,8 @@ describe( 'DecoupledDocumentEditor build', () => {
'<p>'
,
'<p>'
,
'<strong>Test:strong</strong>'
,
'<strong>Test:strong</strong>'
,
'<i>Test:i</i>'
,
'<i>Test:i</i>'
,
'<u>Test:u</u>'
,
'<s>Test:s</s>'
,
'</p>'
'</p>'
].
join
(
''
);
].
join
(
''
);
...
@@ -148,6 +150,34 @@ describe( 'DecoupledDocumentEditor build', () => {
...
@@ -148,6 +150,34 @@ describe( 'DecoupledDocumentEditor build', () => {
editor
.
setData
(
data
);
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
}
);
}
);
it
(
'font size works'
,
()
=>
{
const
data
=
'<p><span class="text-big">foo</span></p>'
;
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
}
);
it
(
'font family works'
,
()
=>
{
const
data
=
'<p><span style="font-family:Georgia, serif;">foo</span></p>'
;
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
}
);
it
(
'highlight works'
,
()
=>
{
const
data
=
'<p><mark class="marker-green">foo</mark></p>'
;
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
}
);
it
(
'alignment works'
,
()
=>
{
const
data
=
'<p style="text-align:right;">foo</p>'
;
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
}
);
}
);
}
);
describe
(
'config'
,
()
=>
{
describe
(
'config'
,
()
=>
{
...
...
tests/manual/ckeditor.js
View file @
de643f88
...
@@ -47,7 +47,7 @@ iterations of the project. Stay tuned for some updates soon!</p>`;
...
@@ -47,7 +47,7 @@ iterations of the project. Stay tuned for some updates soon!</p>`;
DecoupledDocumentEditor
DecoupledDocumentEditor
.
create
(
editorData
,
{
.
create
(
editorData
,
{
toolbarContainer
:
'.toolbar-container'
,
toolbarContainer
:
'.toolbar-container'
,
editableContainer
:
'.editable-container'
,
editableContainer
:
'.editable-container'
}
)
}
)
.
then
(
editor
=>
{
.
then
(
editor
=>
{
window
.
editor
=
editor
;
window
.
editor
=
editor
;
...
...
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