Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CkEditor-Embed-Plugins
Project
Overview
Details
Activity
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
Bolt Extensions
CkEditor-Embed-Plugins
Commits
ac06862f
Commit
ac06862f
authored
Apr 10, 2019
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ckeditor-plugins.js
parent
52fe3d6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
ckeditor-plugins.js
web/js/ckeditor-plugins.js
+8
-13
No files found.
web/js/ckeditor-plugins.js
View file @
ac06862f
...
@@ -3,11 +3,14 @@ if (typeof CKEDITOR !== 'undefined') {
...
@@ -3,11 +3,14 @@ if (typeof CKEDITOR !== 'undefined') {
}
}
jQuery
(
document
).
ready
(
function
(
$
)
{
jQuery
(
document
).
ready
(
function
(
$
)
{
var
CKEDITORPluginExtras
=
false
;
var
CKEDITORPluginExtras
=
false
;
if
(
typeof
(
CKEDITOR
)
!=
'undefined'
)
{
if
(
typeof
(
CKEDITOR
)
!=
'undefined'
)
{
//CKEDITOR.plugins.addExternal('fontawesome', '/extensions/mycompany/customckeditor/plugins/fontawesome/', 'plugin.js');
//CKEDITOR.plugins.addExternal('dialog', '/extensions/vendor/mycompany/customckeditor/plugins/dialog/', 'plugin.js');
for
(
const
i
in
ckeditorPlugins
)
{
CKEDITOR
.
plugins
.
addExternal
(
'colordialog'
,
'/extensions/vendor/mycompany/customckeditor/plugins/colordialog/'
,
'plugin.js'
);
if
(
ckeditorPlugins
.
hasOwnProperty
(
i
))
{
const
plugin
=
ckeditorPlugins
[
i
];
CKEDITOR
.
plugins
.
addExternal
(
plugin
,
`/extensions/vendor/appolo/bolt-extension-ckeditor-embed-plugins/plugins/
${
plugin
}
/`
,
'plugin.js'
);
}
}
CKEDITOR
.
on
(
'instanceReady'
,
function
(
event
,
instance
)
{
CKEDITOR
.
on
(
'instanceReady'
,
function
(
event
,
instance
)
{
if
(
CKEDITORPluginExtras
)
{
if
(
CKEDITORPluginExtras
)
{
...
@@ -17,15 +20,7 @@ jQuery(document).ready(function ($) {
...
@@ -17,15 +20,7 @@ jQuery(document).ready(function ($) {
var
config
=
event
.
editor
.
config
,
var
config
=
event
.
editor
.
config
,
name
;
name
;
console
.
log
(
'config'
,
config
);
config
.
extraPlugins
+=
(
config
.
extraPlugins
?
','
:
''
)
+
ckeditorPlugins
.
join
(
','
);
//config.extraPlugins = 'fontawesome';
/*config.toolbar.push(
{ name: 'insert', items: [ 'FontAwesome' ] }
);*/
config
.
extraPlugins
+=
(
config
.
extraPlugins
?
','
:
''
)
+
'widget,dialog,colordialog'
;
for
(
name
in
CKEDITOR
.
instances
)
{
for
(
name
in
CKEDITOR
.
instances
)
{
if
(
CKEDITOR
.
instances
.
hasOwnProperty
(
name
))
{
if
(
CKEDITOR
.
instances
.
hasOwnProperty
(
name
))
{
...
...
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