Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Arteneo
/
CKEditor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Authored by
Arek Wtykło
2016-07-19 12:12:48 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef49b909fcb8df038fba198af84193e6b69a3625
ef49b909
1 parent
eab613fa
arteCode dla CKEditora
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
config.js
config.js
View file @
ef49b90
...
...
@@ -18,7 +18,7 @@ CKEDITOR.plugins.add('artecode', {
editor
.
addCommand
(
'insertHTML'
,
{
exec
:
function
(
editor
)
{
editor
.
insertHtml
(
'<p><br/></p><pre><code class="line-numbers language-
html">Amazing HTML5
code</code></pre>'
);
editor
.
insertHtml
(
'<p><br/></p><pre><code class="line-numbers language-
twig">Amazing HTML5/TWIG
code</code></pre>'
);
}
});
editor
.
ui
.
addButton
(
'insertHTML'
,
{
...
...
@@ -29,7 +29,7 @@ CKEDITOR.plugins.add('artecode', {
editor
.
addCommand
(
'insertCSS'
,
{
exec
:
function
(
editor
)
{
editor
.
insertHtml
(
'<p><br/></p><pre><code class="line-numbers language-
css">Amazing CSS3
code</code></pre>'
);
editor
.
insertHtml
(
'<p><br/></p><pre><code class="line-numbers language-
less">Amazing CSS3/LESS
code</code></pre>'
);
}
});
editor
.
ui
.
addButton
(
'insertCSS'
,
{
...
...
@@ -64,6 +64,8 @@ CKEDITOR.plugins.add('artecode', {
CKEDITOR
.
editorConfig
=
function
(
config
)
{
config
.
extraPlugins
=
'artecode'
;
config
.
toolbar
=
[
{
name
:
'document'
,
groups
:
[
'mode'
,
'document'
,
'doctools'
,
'clipboard'
,
'undo'
],
items
:
[
'Source'
,
'-'
,
'Save'
,
'-'
,
'Templates'
,
'Cut'
,
'Copy'
,
'Paste'
,
'PasteText'
,
'PasteFromWord'
,
'-'
,
'Undo'
,
'Redo'
]},
{
name
:
'basicstyles'
,
groups
:
[
'basicstyles'
,
'cleanup'
],
items
:
[
'Bold'
,
'Italic'
,
'Underline'
,
'Strike'
,
'Subscript'
,
'Superscript'
,
'-'
,
'RemoveFormat'
]},
...
...
Please
register
or
login
to post a comment