Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ckeditor-3358962
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
ckeditor-3358962
Commits
da3d7797
Commit
da3d7797
authored
12 years ago
by
dczepierga
Browse files
Options
Downloads
Patches
Plain Diff
[
#1847662
] by dczepierga: Add support for CKEditor v4 - fix MediaEmbed plugin
parent
c3ff1290
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/mediaembed/dialogs/mediaembed.js
+7
-0
7 additions, 0 deletions
plugins/mediaembed/dialogs/mediaembed.js
plugins/mediaembed/plugin.js
+7
-7
7 additions, 7 deletions
plugins/mediaembed/plugin.js
with
14 additions
and
7 deletions
plugins/mediaembed/dialogs/mediaembed.js
+
7
−
0
View file @
da3d7797
...
...
@@ -4,6 +4,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR
.
dialog
.
add
(
'
mediaembedDialog
'
,
function
(
editor
)
{
var
numberRegex
=
/^
\d
+
(?:\.\d
+
)?
$/
;
var
cssifyLength
=
function
(
length
)
{
if
(
numberRegex
.
test
(
length
)
)
return
length
+
'
px
'
;
return
length
;
}
return
{
title
:
Drupal
.
t
(
'
Embed Media Dialog
'
),
minWidth
:
400
,
...
...
This diff is collapsed.
Click to expand it.
plugins/mediaembed/plugin.js
+
7
−
7
View file @
da3d7797
...
...
@@ -7,6 +7,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
* @file Plugin for inserting Drupal embeded media
*/
(
function
()
{
var
numberRegex
=
/^
\d
+
(?:\.\d
+
)?
$/
;
var
cssifyLength
=
function
(
length
)
{
if
(
numberRegex
.
test
(
length
)
)
return
length
+
'
px
'
;
return
length
;
}
CKEDITOR
.
plugins
.
add
(
'
mediaembed
'
,
{
requires
:
[
'
dialog
'
,
'
fakeobjects
'
,
'
htmlwriter
'
],
...
...
@@ -100,11 +107,4 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
}
}
}
);
var
numberRegex
=
/^
\d
+
(?:\.\d
+
)?
$/
;
function
cssifyLength
(
length
)
{
if
(
numberRegex
.
test
(
length
)
)
return
length
+
'
px
'
;
return
length
;
}
}
)();
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