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
38f3ef3a
Commit
38f3ef3a
authored
4 years ago
by
wodby
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4506: fixing the path to the mathjax library
parent
b13ad58d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/CKEditorPlugin/MathJaxPlugin.php
+4
-14
4 additions, 14 deletions
src/Plugin/CKEditorPlugin/MathJaxPlugin.php
with
4 additions
and
14 deletions
src/Plugin/CKEditorPlugin/MathJaxPlugin.php
+
4
−
14
View file @
38f3ef3a
...
...
@@ -26,13 +26,6 @@ class MathJaxPlugin extends CKEditorPluginBase implements ContainerFactoryPlugin
*/
protected
$libFileFinder
;
/**
* File system.
*
* @var \Drupal\Core\File\FileSystem
*/
protected
$fileSystem
;
/**
* Constructs a BlockComponentRenderArray object.
*
...
...
@@ -44,20 +37,17 @@ class MathJaxPlugin extends CKEditorPluginBase implements ContainerFactoryPlugin
* The plugin implementation definition.
* @param \Drupal\Core\Asset\LibrariesDirectoryFileFinder $libFileFinder
* The library file finder.
* @param \Drupal\Core\File\FileSystem $fileSystem
* The file system.
*/
public
function
__construct
(
array
$configuration
,
$plugin_id
,
$plugin_definition
,
LibrariesDirectoryFileFinder
$libFileFinder
,
FileSystem
$fileSystem
)
{
public
function
__construct
(
array
$configuration
,
$plugin_id
,
$plugin_definition
,
LibrariesDirectoryFileFinder
$libFileFinder
)
{
parent
::
__construct
(
$configuration
,
$plugin_id
,
$plugin_definition
);
$this
->
libFileFinder
=
$libFileFinder
;
$this
->
fileSystem
=
$fileSystem
;
}
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
,
array
$configuration
,
$plugin_id
,
$plugin_definition
)
{
return
new
static
(
$configuration
,
$plugin_id
,
$plugin_definition
,
$container
->
get
(
'library.libraries_directory_file_finder'
)
,
$container
->
get
(
'file_system'
)
);
return
new
static
(
$configuration
,
$plugin_id
,
$plugin_definition
,
$container
->
get
(
'library.libraries_directory_file_finder'
));
}
/**
...
...
@@ -95,7 +85,7 @@ class MathJaxPlugin extends CKEditorPluginBase implements ContainerFactoryPlugin
return
[
'Mathjax'
=>
[
'label'
=>
$this
->
t
(
'Math'
),
'image'
=>
$this
->
fileSystem
->
realpath
(
$this
->
libFileFinder
->
find
(
'ckeditor-mathjax'
)
)
.
'/icons/mathjax.png'
,
'image'
=>
$this
->
libFileFinder
->
find
(
'ckeditor-mathjax'
)
.
'/icons/mathjax.png'
,
],
];
}
...
...
@@ -104,7 +94,7 @@ class MathJaxPlugin extends CKEditorPluginBase implements ContainerFactoryPlugin
* {@inheritdoc}
*/
public
function
getFile
()
{
return
$this
->
fileSystem
->
realpath
(
$this
->
libFileFinder
->
find
(
'ckeditor-mathjax'
)
)
.
'/plugin.js'
;
return
$this
->
libFileFinder
->
find
(
'ckeditor-mathjax'
)
.
'/plugin.js'
;
}
}
This diff is collapsed.
Click to expand it.
Liam Morland
@lkmorlan
mentioned in commit
a3240122
·
4 years ago
mentioned in commit
a3240122
mentioned in commit a32401229bd28d5b4aa9addecf0a16efb67cfcd6
Toggle commit list
Liam Morland
@lkmorlan
mentioned in merge request
!49 (merged)
·
4 years ago
mentioned in merge request
!49 (merged)
mentioned in merge request !49
Toggle commit list
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