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
59903ab7
Commit
59903ab7
authored
Dec 03, 2019
by
Marek Lewandowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal: Made the error initialization catch statements more informative.
parent
db4508fd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
README.md
README.md
+5
-5
index.html
sample/index.html
+2
-2
ckeditor-cjs-version.js
tests/manual/ckeditor-cjs-version.js
+2
-2
ckeditor.js
tests/manual/ckeditor.js
+2
-2
No files found.
README.md
View file @
59903ab7
...
@@ -45,8 +45,8 @@ And use it in your website:
...
@@ -45,8 +45,8 @@ And use it in your website:
window
.
editor
=
editor
;
window
.
editor
=
editor
;
}
)
}
)
.
catch
(
err
=>
{
.
catch
(
err
or
=>
{
console
.
error
(
err
.
stack
);
console
.
error
(
'There was a problem with initializing the editor'
,
error
);
}
);
}
);
</script>
</script>
```
```
...
@@ -67,8 +67,8 @@ DecoupledEditor
...
@@ -67,8 +67,8 @@ DecoupledEditor
window
.
editor
=
editor
;
window
.
editor
=
editor
;
}
)
}
)
.
catch
(
er
r
=>
{
.
catch
(
erro
r
=>
{
console
.
error
(
err
.
stack
);
console
.
error
(
'There was a problem with initializing the editor'
,
error
);
}
);
}
);
```
```
...
...
sample/index.html
View file @
59903ab7
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
document
.
querySelector
(
'.toolbar-container'
).
appendChild
(
editor
.
ui
.
view
.
toolbar
.
element
);
document
.
querySelector
(
'.toolbar-container'
).
appendChild
(
editor
.
ui
.
view
.
toolbar
.
element
);
document
.
querySelector
(
'.editable-container'
).
appendChild
(
editor
.
ui
.
view
.
editable
.
element
);
document
.
querySelector
(
'.editable-container'
).
appendChild
(
editor
.
ui
.
view
.
editable
.
element
);
}
)
}
)
.
catch
(
err
=>
{
.
catch
(
err
or
=>
{
console
.
error
(
err
.
stack
);
console
.
error
(
'There was a problem with initializing the editor'
,
error
);
}
);
}
);
</script>
</script>
...
...
tests/manual/ckeditor-cjs-version.js
View file @
59903ab7
...
@@ -14,6 +14,6 @@ DecoupledEditor.create( document.querySelector( '#editor' ) )
...
@@ -14,6 +14,6 @@ DecoupledEditor.create( document.querySelector( '#editor' ) )
window
.
editor
=
editor
;
window
.
editor
=
editor
;
}
)
}
)
.
catch
(
err
=>
{
.
catch
(
err
or
=>
{
console
.
error
(
err
.
stack
);
console
.
error
(
'There was a problem with initializing the editor'
,
error
);
}
);
}
);
tests/manual/ckeditor.js
View file @
59903ab7
...
@@ -13,6 +13,6 @@ DecoupledEditor.create( document.querySelector( '#editor' ) )
...
@@ -13,6 +13,6 @@ DecoupledEditor.create( document.querySelector( '#editor' ) )
window
.
editor
=
editor
;
window
.
editor
=
editor
;
}
)
}
)
.
catch
(
err
=>
{
.
catch
(
err
or
=>
{
console
.
error
(
err
.
stack
);
console
.
error
(
'There was a problem with initializing the editor'
,
error
);
}
);
}
);
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