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
3cc66676
Commit
3cc66676
authored
Jan 27, 2020
by
panr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change fontBackgroundColor to match yellow color from color picker
parent
a33a08ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ckeditor.js
tests/ckeditor.js
+2
-2
No files found.
tests/ckeditor.js
View file @
3cc66676
...
@@ -204,11 +204,11 @@ describe( 'DecoupledEditor build', () => {
...
@@ -204,11 +204,11 @@ describe( 'DecoupledEditor build', () => {
}
);
}
);
it
(
'font background color works'
,
()
=>
{
it
(
'font background color works'
,
()
=>
{
const
data
=
'<p><span style="background-color:
gold
;">foo</span></p>'
;
const
data
=
'<p><span style="background-color:
hsl(60,75%,60%)
;">foo</span></p>'
;
editor
.
setData
(
data
);
editor
.
setData
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
getData
()
).
to
.
equal
(
data
);
expect
(
editor
.
model
.
document
.
selection
.
getAttribute
(
'fontBackgroundColor'
)
).
to
.
equal
(
'
gold
'
);
expect
(
editor
.
model
.
document
.
selection
.
getAttribute
(
'fontBackgroundColor'
)
).
to
.
equal
(
'
hsl(60,75%,60%)
'
);
}
);
}
);
it
(
'font color works'
,
()
=>
{
it
(
'font color works'
,
()
=>
{
...
...
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