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
f0d179a5
Commit
f0d179a5
authored
Apr 10, 2019
by
Frédéric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test
parent
f1819d8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
CkEditorEmbedPluginsExtension.php
src/CkEditorEmbedPluginsExtension.php
+12
-1
No files found.
src/CkEditorEmbedPluginsExtension.php
View file @
f0d179a5
...
...
@@ -3,6 +3,8 @@
namespace
Bolt\Extension\Appolo\CkEditorEmbedPlugins
;
use
Bolt\Asset\File\JavaScript
;
use
Bolt\Asset\Snippet\Snippet
;
use
Bolt\Asset\Target
;
use
Bolt\Controller\Zone
;
use
Bolt\Extension\SimpleExtension
;
...
...
@@ -33,7 +35,16 @@ class CkEditorEmbedPluginsExtension extends SimpleExtension
->
setAttributes
([
'data-plugins'
,
'plop, coin, plopcoin'
],
[
'id'
,
'ckeditor-plugins'
])
->
setLate
(
true
)
->
setPriority
(
5
)
->
setZone
(
Zone
::
BACKEND
)
->
setZone
(
Zone
::
BACKEND
),
Snippet
::
create
()
->
setCallback
([
$this
,
'loadConfig'
])
->
setLocation
(
Target
::
AFTER_META
)
->
setPriority
(
5
)
->
setZone
(
Zone
::
BACKEND
),
];
}
public
function
loadConfig
()
{
return
'<meta name="ckeditor-config" content="plop, coin, plopcoin" />'
;
}
}
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