FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Test/ckeditor/samples/sample.js at master · JavaDevl/Test · GitHub
JavaDevl
/
Test
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Test
/
ckeditor
/
samples
/
sample.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (29 loc) · 1.14 KB
Breadcrumbs
Test
/
ckeditor
/
samples
/
sample.js
Copy path
File metadata and controls
33 lines (29 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// Tool scripts for the sample pages.
// This file can be ignored and is not required to make use of CKEditor.
(
function
(
)
{
// Check for sample compliance.
CKEDITOR
.
on
(
'instanceReady'
,
function
(
ev
)
{
var
editor
=
ev
.
editor
,
meta
=
CKEDITOR
.
document
.
$
.
getElementsByName
(
'ckeditor-sample-required-plugins'
)
,
requires
=
meta
.
length
?
CKEDITOR
.
dom
.
element
.
get
(
meta
[
0
]
)
.
getAttribute
(
'content'
)
.
split
(
','
)
:
[
]
,
missing
=
[
]
;
if
(
requires
.
length
)
{
for
(
var
i
=
0
;
i
<
requires
.
length
;
i
++
)
{
if
(
!
editor
.
plugins
[
requires
[
i
]
]
)
missing
.
push
(
'<code>'
+
requires
[
i
]
+
'</code>'
)
;
}
if
(
missing
.
length
)
{
var
warn
=
CKEDITOR
.
dom
.
element
.
createFromHtml
(
'<div class="warning">'
+
'<span>To fully experience this demo, the '
+
missing
.
join
(
', '
)
+
' plugin'
+
(
missing
.
length
>
1
?
's are'
:
' is'
)
+
' required.</span>'
+
'</div>'
)
;
warn
.
insertBefore
(
editor
.
container
)
;
}
}
}
)
;
}
)
(
)
;
Back
|
FazBrowse Home
|
New Git URL