Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
99ed03e5
Commit
99ed03e5
authored
4 years ago
by
Lily Yan
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4210 Add dialog plugin
parent
aeaca994
No related branches found
No related tags found
1 merge request
!39
Feature/istwcms 4210 l26yan add mathjax
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/CKEditorPlugin/DialogPlugin.php
+39
-0
39 additions, 0 deletions
src/Plugin/CKEditorPlugin/DialogPlugin.php
with
39 additions
and
0 deletions
src/Plugin/CKEditorPlugin/DialogPlugin.php
0 → 100644
+
39
−
0
View file @
99ed03e5
<?php
namespace
Drupal\uw_cfg_common\Plugin\CKEditorPlugin
;
use
Drupal\ckeditor\CKEditorPluginBase
;
use
Drupal\editor\Entity\Editor
;
/**
* Defines the "dialog" plugin.
*
* @CKEditorPlugin(
* id = "dialog",
* label = @Translation("Dialog")
* )
*/
class
DialogPlugin
extends
CKEditorPluginBase
{
/**
* {@inheritdoc}
*/
public
function
getConfig
(
Editor
$editor
)
{
return
[];
}
/**
* {@inheritdoc}
*/
public
function
getButtons
()
{
return
[];
}
/**
* {@inheritdoc}
*/
public
function
getFile
()
{
return
drupal_get_path
(
'profile'
,
'uw_base_profile'
)
.
'/libraries/ckeditor-dialog/plugin.js'
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment