effective_ckeditor 1.8.3 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/HOW_TO_UPGRADE_CKEDITOR.txt +1 -1
- data/app/assets/javascripts/ckeditor/CHANGES.md +1342 -654
- data/app/assets/javascripts/ckeditor/LICENSE.md +3 -3
- data/app/assets/javascripts/ckeditor/adapters/jquery.js +2 -2
- data/app/assets/javascripts/ckeditor/build-config.js +54 -51
- data/app/assets/javascripts/ckeditor/ckeditor.js +991 -866
- data/app/assets/javascripts/ckeditor/config.js +3 -3
- data/app/assets/javascripts/ckeditor/contents.css +83 -7
- data/app/assets/javascripts/ckeditor/lang/en.js +4 -4
- data/app/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +9 -9
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
- data/app/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +12 -11
- data/app/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/effective_assets/plugin.js.coffee +4 -2
- data/app/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +23 -22
- data/app/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +13 -12
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -5
- data/app/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +28 -24
- data/app/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +7 -7
- data/app/assets/javascripts/ckeditor/plugins/oembed/css/oembed.css +3 -0
- data/app/assets/javascripts/ckeditor/plugins/oembed/libs/jquery.oembed.min.js +90 -71
- data/app/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +53 -30
- data/app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +19 -19
- data/app/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -15
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +2 -2
- data/app/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/default.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/ckeditor/skins/moonocolor/editor.css.erb +1 -1
- data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_gecko.css.erb +1 -1
- data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_ie.css.erb +1 -1
- data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_ie7.css.erb +1 -1
- data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_ie8.css.erb +1 -1
- data/app/assets/javascripts/ckeditor/skins/moonocolor/editor_iequirks.css.erb +1 -1
- data/app/assets/javascripts/ckeditor/skins/moonocolor/icons.png +0 -0
- data/app/assets/javascripts/ckeditor/skins/moonocolor/icons_hidpi.png +0 -0
- data/app/assets/javascripts/ckeditor/styles.js +43 -17
- data/app/assets/javascripts/effective_ckeditor/before_init.js.erb +6 -0
- data/app/assets/javascripts/effective_ckeditor/init.js.coffee +19 -18
- data/lib/effective_ckeditor/version.rb +1 -1
- metadata +4 -4
- data/app/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -44
- data/app/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
3
|
-
* For licensing, see
|
2
|
+
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
|
6
6
|
CKEDITOR.editorConfig = function( config ) {
|
7
7
|
// Define changes to default configuration here.
|
8
8
|
// For complete reference see:
|
9
|
-
//
|
9
|
+
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
|
10
10
|
|
11
11
|
// The toolbar groups arrangement, optimized for a single toolbar row.
|
12
12
|
config.toolbarGroups = [
|
@@ -1,18 +1,19 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
|
6
6
|
body
|
7
7
|
{
|
8
8
|
/* Font */
|
9
|
-
|
9
|
+
/* Emoji fonts are added to visualise them nicely in Internet Explorer. */
|
10
|
+
font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
10
11
|
font-size: 12px;
|
11
12
|
|
12
13
|
/* Text color */
|
13
14
|
color: #333;
|
14
15
|
|
15
|
-
/* Remove the background color to make it transparent */
|
16
|
+
/* Remove the background color to make it transparent. */
|
16
17
|
background-color: #fff;
|
17
18
|
|
18
19
|
margin: 20px;
|
@@ -22,6 +23,9 @@ body
|
|
22
23
|
{
|
23
24
|
font-size: 13px;
|
24
25
|
line-height: 1.6;
|
26
|
+
|
27
|
+
/* Fix for missing scrollbars with RTL texts. (#10488) */
|
28
|
+
word-wrap: break-word;
|
25
29
|
}
|
26
30
|
|
27
31
|
blockquote
|
@@ -57,7 +61,7 @@ ol,ul,dl
|
|
57
61
|
{
|
58
62
|
/* IE7: reset rtl list margin. (#7334) */
|
59
63
|
*margin-right: 0px;
|
60
|
-
/*
|
64
|
+
/* Preserved spaces for list items with text direction different than the list. (#6249,#8049)*/
|
61
65
|
padding: 0 40px;
|
62
66
|
}
|
63
67
|
|
@@ -110,8 +114,7 @@ span[lang]
|
|
110
114
|
figure
|
111
115
|
{
|
112
116
|
text-align: center;
|
113
|
-
|
114
|
-
border-radius: 2px;
|
117
|
+
outline: solid 1px #ccc;
|
115
118
|
background: rgba(0,0,0,0.05);
|
116
119
|
padding: 10px;
|
117
120
|
margin: 10px 20px;
|
@@ -130,3 +133,76 @@ a > img {
|
|
130
133
|
border: none;
|
131
134
|
outline: 1px solid #0782C1;
|
132
135
|
}
|
136
|
+
|
137
|
+
/* Widget Styles */
|
138
|
+
.code-featured
|
139
|
+
{
|
140
|
+
border: 5px solid red;
|
141
|
+
}
|
142
|
+
|
143
|
+
.math-featured
|
144
|
+
{
|
145
|
+
padding: 20px;
|
146
|
+
box-shadow: 0 0 2px rgba(200, 0, 0, 1);
|
147
|
+
background-color: rgba(255, 0, 0, 0.05);
|
148
|
+
margin: 10px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.image-clean
|
152
|
+
{
|
153
|
+
border: 0;
|
154
|
+
background: none;
|
155
|
+
padding: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
.image-clean > figcaption
|
159
|
+
{
|
160
|
+
font-size: .9em;
|
161
|
+
text-align: right;
|
162
|
+
}
|
163
|
+
|
164
|
+
.image-grayscale
|
165
|
+
{
|
166
|
+
background-color: white;
|
167
|
+
color: #666;
|
168
|
+
}
|
169
|
+
|
170
|
+
.image-grayscale img, img.image-grayscale
|
171
|
+
{
|
172
|
+
filter: grayscale(100%);
|
173
|
+
}
|
174
|
+
|
175
|
+
.embed-240p
|
176
|
+
{
|
177
|
+
max-width: 426px;
|
178
|
+
max-height: 240px;
|
179
|
+
margin:0 auto;
|
180
|
+
}
|
181
|
+
|
182
|
+
.embed-360p
|
183
|
+
{
|
184
|
+
max-width: 640px;
|
185
|
+
max-height: 360px;
|
186
|
+
margin:0 auto;
|
187
|
+
}
|
188
|
+
|
189
|
+
.embed-480p
|
190
|
+
{
|
191
|
+
max-width: 854px;
|
192
|
+
max-height: 480px;
|
193
|
+
margin:0 auto;
|
194
|
+
}
|
195
|
+
|
196
|
+
.embed-720p
|
197
|
+
{
|
198
|
+
max-width: 1280px;
|
199
|
+
max-height: 720px;
|
200
|
+
margin:0 auto;
|
201
|
+
}
|
202
|
+
|
203
|
+
.embed-1080p
|
204
|
+
{
|
205
|
+
max-width: 1920px;
|
206
|
+
max-height: 1080px;
|
207
|
+
margin:0 auto;
|
208
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
1
|
+
/*
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/license
|
4
4
|
*/
|
5
|
-
CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Alignment","alignLeft":"Left","alignRight":"Right","alignCenter":"Center","alignJustify":"Justify","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","alignNone":"None","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"blockquote":{"toolbar":"Block Quote"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteArea":"Paste Area","pasteMsg":"Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK","securityMsg":"Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.","title":"Paste"},"button":{"selectedLabel":"%1 (Selected)"},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Color","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White"},"more":"More Colors...","panelTitle":"Colors","textColorTitle":"Text Color"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"contextmenu":{"options":"Context Menu Options"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"image":{"alt":"Alternative Text","border":"Border","btnUpload":"Send it to the Server","button2Img":"Do you want to transform the selected image button on a simple image?","hSpace":"HSpace","img2Button":"Do you want to transform the selected image on a image button?","infoTab":"Image Info","linkTab":"Link","lockRatio":"Lock Ratio","menu":"Image Properties","resetSize":"Reset Size","title":"Image Properties","titleButton":"Image Button Properties","upload":"Upload","urlMissing":"Image source URL is missing.","vSpace":"VSpace","validateBorder":"Border must be a whole number.","validateHSpace":"HSpace must be a whole number.","validateVSpace":"VSpace must be a whole number."},"widget":{"move":"Click and drag to move"},"image2":{"alt":"Alternative Text","btnUpload":"Send it to the Server","captioned":"Captioned image","captionPlaceholder":"Caption","infoTab":"Image Info","lockRatio":"Lock Ratio","menu":"Image Properties","pathName":"image","pathNameCaption":"caption","resetSize":"Reset Size","resizer":"Click and drag to resize","title":"Image Properties","uploadTab":"Upload","urlMissing":"Image source URL is missing."},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"justify":{"block":"Justify","center":"Center","left":"Align Left","right":"Align Right"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","other":"<other>","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"armenian":"Armenian numbering","bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","decimalLeadingZero":"Decimal leading zero (01, 02, 03, etc.)","disc":"Disc","georgian":"Georgian numbering (an, ban, gan, etc.)","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerGreek":"Lower Greek (alpha, beta, gamma, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"newpage":{"toolbar":"New Page"},"oembed":{"title":"Embed Media Content (Photo, Video, Audio or Rich Content)","button":"Embed Media from External Sites","pasteUrl":"Paste a URL (shorted URLs are also supported) from one of the supported sites (e.g. YouTube, Flickr, Qik, Vimeo, Hulu, Viddler, MyOpera, etc.).","invalidUrl":"Please provide a valid URL.","noEmbedCode":"No embed code found, or site is not supported.","url":"URL:","width":"Width:","height":"Height:","widthTitle":"Width for the embeded content","heightTitle":"Height for the embeded content","maxWidth":"Max. Width:","maxHeight":"Max. Height:","maxWidthTitle":"Maximum Width for the embeded Content","maxHeightTitle":"Maximum Height for the embeded Content","none":"None","resizeType":"Resize Type (videos only):","noresize":"No Resize (use default)","responsive":"Responsive Resize","custom":"Specific Resize","noVimeo":"The owner of this video has set domain restrictions and you will not be able to embed it on your website.","Error":"Media Content could not been retrieved, please try a different URL."},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"pastetext":{"button":"Paste as plain text","title":"Paste as Plain Text"},"removeformat":{"toolbar":"Remove Format"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"sourcearea":{"toolbar":"Source"},"sourcedialog":{"toolbar":"Source","title":"Source"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"syntaxhighlight":{"title":"Add or update a code snippet","contextTitle":"Edit source code","sourceTab":"Source code","langLbl":"Select language","sourceTextareaEmptyError":"Source code mustn't be empty.","advancedTab":"Advanced","hideGutter":"Hide gutter","hideGutterLbl":"Hide gutter & line numbers.","hideControls":"Hide controls","hideControlsLbl":"Hide code controls at the top of the code block.","collapse":"Collapse","collapseLbl":"Collapse the code block by default. (controls need to be turned on)","codeTitleLbl":"Use a Code Title","showColumns":"Show columns","showColumnsLbl":"Show row columns in the first line.","lineWrap":"Disable line wrapping","lineWrapLbl":"Switch off line wrapping.","lineCount":"Default line count","highlight":"Highlight lines","highlightLbl":"Enter a comma seperated lines of lines you want to highlight, eg <em style=\"font-style:italic\">3,10,15</em>."},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a positive number.","invalidCellSpacing":"Cell spacing must be a positive number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"undo":{"redo":"Redo","undo":"Undo"}};
|
5
|
+
CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Alignment","left":"Left","right":"Right","center":"Center","justify":"Justify","alignLeft":"Align Left","alignRight":"Align Right","alignCenter":"Align Center","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","alignNone":"None","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidLength":"Value specified for the \"%1\" field must be a positive number with or without a valid measurement unit (%2).","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>","keyboard":{"8":"Backspace","13":"Enter","16":"Shift","17":"Ctrl","18":"Alt","32":"Space","35":"End","36":"Home","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","124":"F13","125":"F14","126":"F15","127":"F16","128":"F17","129":"F18","130":"F19","131":"F20","132":"F21","133":"F22","134":"F23","135":"F24","224":"Command"},"keyboardShortcut":"Keyboard shortcut","optionDefault":"Default"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"blockquote":{"toolbar":"Block Quote"},"notification":{"closed":"Notification closed."},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","pasteArea":"Paste Area","pasteMsg":"Paste your content inside the area below and press OK."},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Color","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White","1ABC9C":"Strong Cyan","2ECC71":"Emerald","3498DB":"Bright Blue","9B59B6":"Amethyst","4E5F70":"Grayish Blue","F1C40F":"Vivid Yellow","16A085":"Dark Cyan","27AE60":"Dark Emerald","2980B9":"Strong Blue","8E44AD":"Dark Violet","2C3E50":"Desaturated Blue","F39C12":"Orange","E67E22":"Carrot","E74C3C":"Pale Red","ECF0F1":"Bright Silver","95A5A6":"Light Grayish Cyan","DDD":"Light Gray","D35400":"Pumpkin","C0392B":"Strong Red","BDC3C7":"Silver","7F8C8D":"Grayish Cyan","999":"Dark Gray"},"more":"More Colors...","panelTitle":"Colors","textColorTitle":"Text Color"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"contextmenu":{"options":"Context Menu Options"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"filetools":{"loadError":"Error occurred during file read.","networkError":"Network error occurred during file upload.","httpError404":"HTTP error occurred during file upload (404: File not found).","httpError403":"HTTP error occurred during file upload (403: Forbidden).","httpError":"HTTP error occurred during file upload (error status: %1).","noUrlError":"Upload URL is not defined.","responseError":"Incorrect server response."},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"image":{"alt":"Alternative Text","border":"Border","btnUpload":"Send it to the Server","button2Img":"Do you want to transform the selected image button on a simple image?","hSpace":"HSpace","img2Button":"Do you want to transform the selected image on a image button?","infoTab":"Image Info","linkTab":"Link","lockRatio":"Lock Ratio","menu":"Image Properties","resetSize":"Reset Size","title":"Image Properties","titleButton":"Image Button Properties","upload":"Upload","urlMissing":"Image source URL is missing.","vSpace":"VSpace","validateBorder":"Border must be a whole number.","validateHSpace":"HSpace must be a whole number.","validateVSpace":"VSpace must be a whole number."},"widget":{"move":"Click and drag to move","label":"%1 widget"},"image2":{"alt":"Alternative Text","btnUpload":"Send it to the Server","captioned":"Captioned image","captionPlaceholder":"Caption","infoTab":"Image Info","lockRatio":"Lock Ratio","menu":"Image Properties","pathName":"image","pathNameCaption":"caption","resetSize":"Reset Size","resizer":"Click and drag to resize","title":"Image Properties","uploadTab":"Upload","urlMissing":"Image source URL is missing.","altMissing":"Alternative text is missing."},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","download":"Force Download","displayText":"Display Text","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","noTel":"Please type the phone number","other":"<other>","phoneNumber":"Phone number","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toPhone":"Phone","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","disc":"Disc","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"newpage":{"toolbar":"New Page"},"oembed":{"title":"Embed Media Content (Photo, Video, Audio or Rich Content)","button":"Embed Media from External Sites","pasteUrl":"Paste a URL (shorted URLs are also supported) from one of the supported sites (e.g. YouTube, Flickr, Qik, Vimeo, Hulu, Viddler, MyOpera, etc.).","invalidUrl":"Please provide a valid URL.","noEmbedCode":"No embed code found, or site is not supported.","embedTitle":"Title (or aria-label) <span class='oembed-required'>[Required]</span>:","url":"URL <span class='oembed-required'>[Required]</span>:","width":"Width:","height":"Height:","widthTitle":"Width for the embeded content","heightTitle":"Height for the embeded content","maxWidth":"Max. Width:","maxHeight":"Max. Height:","maxWidthTitle":"Maximum Width for the embeded Content","maxHeightTitle":"Maximum Height for the embeded Content","none":"None","resizeType":"Resize Type (videos only):","noresize":"No Resize (use default)","responsive":"Responsive Resize","custom":"Specific Resize","noVimeo":"The owner of this video has set domain restrictions and you will not be able to embed it on your website.","Error":"Media Content could not been retrieved, please try a different URL.","titleError":"Media Title is required to meet accessibility standards."},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"pastetext":{"button":"Paste as plain text","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","title":"Paste as Plain Text"},"removeformat":{"toolbar":"Remove Format"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"sourcearea":{"toolbar":"Source"},"sourcedialog":{"toolbar":"Source","title":"Source"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"syntaxhighlight":{"title":"Add or update a code snippet","contextTitle":"Edit source code","sourceTab":"Source code","langLbl":"Select language","sourceTextareaEmptyError":"Source code mustn't be empty.","advancedTab":"Advanced","hideGutter":"Hide gutter","hideGutterLbl":"Hide gutter & line numbers.","hideControls":"Hide controls","hideControlsLbl":"Hide code controls at the top of the code block.","collapse":"Collapse","collapseLbl":"Collapse the code block by default. (controls need to be turned on)","codeTitleLbl":"Use a Code Title","showColumns":"Show columns","showColumnsLbl":"Show row columns in the first line.","lineWrap":"Disable line wrapping","lineWrapLbl":"Switch off line wrapping.","lineCount":"Default line count","highlight":"Highlight lines","highlightLbl":"Enter a comma seperated lines of lines you want to highlight, eg <em style=\"font-style:italic\">3,10,15</em>."},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a positive number.","invalidCellSpacing":"Cell spacing must be a positive number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"undo":{"redo":"Redo","undo":"Undo"},"base64image":{"alt":"Alternative Text","lockRatio":"Lock Ratio","vSpace":"VSpace","hSpace":"HSpace","border":"Border"}};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
CKEDITOR.dialog.add("paste",function(c){function
|
6
|
-
b.getWindow().getFrame().removeCustomData("pendingFocus")&&
|
7
|
-
|
8
|
-
|
9
|
-
CKEDITOR.tools.addFunction(
|
10
|
-
"pasteMsg").domId+'"\x3e\x3c/iframe\x3e');d.on("load",function(a){a.removeListener();a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody());CKEDITOR.env.air&&
|
11
|
-
a.append(
|
5
|
+
CKEDITOR.dialog.add("paste",function(c){function k(a){var b=new CKEDITOR.dom.document(a.document),g=b.getBody(),d=b.getById("cke_actscrpt");d&&d.remove();g.setAttribute("contenteditable",!0);g.on(e.mainPasteEvent,function(a){a=e.initPasteDataTransfer(a);f?a!=f&&(f=e.initPasteDataTransfer()):f=a});if(CKEDITOR.env.ie&&8>CKEDITOR.env.version)b.getWindow().on("blur",function(){b.$.selection.empty()});b.on("keydown",function(a){a=a.data;var b;switch(a.getKeystroke()){case 27:this.hide();b=1;break;case 9:case CKEDITOR.SHIFT+
|
6
|
+
9:this.changeFocus(1),b=1}b&&a.preventDefault()},this);c.fire("ariaWidget",new CKEDITOR.dom.element(a.frameElement));b.getWindow().getFrame().removeCustomData("pendingFocus")&&g.focus()}var h=c.lang.clipboard,e=CKEDITOR.plugins.clipboard,f;c.on("pasteDialogCommit",function(a){a.data&&c.fire("paste",{type:"auto",dataValue:a.data.dataValue,method:"paste",dataTransfer:a.data.dataTransfer||e.initPasteDataTransfer()})},null,null,1E3);return{title:h.paste,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?370:
|
7
|
+
350,minHeight:CKEDITOR.env.quirks?250:245,onShow:function(){this.parts.dialog.$.offsetHeight;this.setupContent();this._.committed=!1},onLoad:function(){(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&"rtl"==c.lang.dir&&this.parts.contents.setStyle("overflow","hidden")},onOk:function(){this.commitContent()},contents:[{id:"general",label:c.lang.common.generalTab,elements:[{type:"html",id:"pasteMsg",html:'\x3cdiv style\x3d"white-space:normal;width:340px"\x3e'+h.pasteMsg+"\x3c/div\x3e"},{type:"html",
|
8
|
+
id:"editing_area",style:"width:100%;height:100%",html:"",focus:function(){var a=this.getInputElement(),b=a.getFrameDocument().getBody();!b||b.isReadOnly()?a.setCustomData("pendingFocus",1):b.focus()},setup:function(){var a=this.getDialog(),b='\x3chtml dir\x3d"'+c.config.contentsLangDirection+'" lang\x3d"'+(c.config.contentsLanguage||c.langCode)+'"\x3e\x3chead\x3e\x3cstyle\x3ebody{margin:3px;height:95%;word-break:break-all;}\x3c/style\x3e\x3c/head\x3e\x3cbody\x3e\x3cscript id\x3d"cke_actscrpt" type\x3d"text/javascript"\x3ewindow.parent.CKEDITOR.tools.callFunction('+
|
9
|
+
CKEDITOR.tools.addFunction(k,a)+",this);\x3c/script\x3e\x3c/body\x3e\x3c/html\x3e",g=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+'})())"':"",d=CKEDITOR.dom.element.createFromHtml('\x3ciframe class\x3d"cke_pasteframe" frameborder\x3d"0" allowTransparency\x3d"true" src\x3d"'+g+'" aria-label\x3d"'+h.pasteArea+'" aria-describedby\x3d"'+a.getContentElement("general",
|
10
|
+
"pasteMsg").domId+'"\x3e\x3c/iframe\x3e');f=null;d.on("load",function(a){a.removeListener();a=d.getFrameDocument();a.write(b);c.focusManager.add(a.getBody());CKEDITOR.env.air&&k.call(this,a.getWindow().$)},a);d.setCustomData("dialog",a);a=this.getElement();a.setHtml("");a.append(d);if(CKEDITOR.env.ie&&!CKEDITOR.env.edge){var e=CKEDITOR.dom.element.createFromHtml('\x3cspan tabindex\x3d"-1" style\x3d"position:absolute" role\x3d"presentation"\x3e\x3c/span\x3e');e.on("focus",function(){setTimeout(function(){d.$.contentWindow.focus()})});
|
11
|
+
a.append(e);this.focus=function(){e.focus();this.fire("focus")}}this.getInputElement=function(){return d};CKEDITOR.env.ie&&(a.setStyle("display","block"),a.setStyle("height",d.$.offsetHeight+2+"px"))},commit:function(){var a=this.getDialog().getParentEditor(),b=this.getInputElement().getFrameDocument().getBody(),c=b.getBogus();c&&c.remove();b=b.getHtml();this.getDialog()._.committed=!0;a.fire("pasteDialogCommit",{dataValue:b,dataTransfer:f||e.initPasteDataTransfer()})}}]}]}});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
.cke_colordialog_colorcell {
|
7
|
+
width: 12px; /* All cells have equal width which depends on parent width (in this case table parent). Width works more like max-width. */
|
8
|
+
height: 14px;
|
9
|
+
padding: 1px; /* Padding is replaced by border for focused cells. Prevents 'jumping' when adding borders. */
|
10
|
+
}
|
11
|
+
|
12
|
+
.cke_colordialog_colorcell.cke_colordialog_focused_light,
|
13
|
+
.cke_colordialog_colorcell.cke_colordialog_focused_dark {
|
14
|
+
padding: 0; /* Shrink cell to allow 1px border indicating focus. */
|
15
|
+
border: 1px dotted #000;
|
16
|
+
}
|
17
|
+
|
18
|
+
.cke_colordialog_colorcell.cke_colordialog_focused_dark {
|
19
|
+
border-color: #FFF;
|
20
|
+
}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
CKEDITOR.dialog.add("colordialog",function(x){function
|
6
|
-
(165<=.2126*b[0]+.7152*b[1]+.0722*b[2]
|
7
|
-
(
|
8
|
-
(a=b.getParent().getNext())&&(a=a.getChild([0]))&&1==a.type&&(a.focus(),c.preventDefault(!0));break;case d?39:37:if(a=b.getPrevious())a.focus(),c.preventDefault(!0);else if(a=b.getParent().getPrevious())a=a.getLast(),a.focus(),c.preventDefault(!0)}}var v=CKEDITOR.dom.element,
|
9
|
-
a;w<a+3;w++){var e=new v(h.$.insertRow(-1));e.setAttribute("role","row");for(var f=d;f<d+3;f++)for(var g=0;6>g;g++)c(e.$,"#"+b[f]+b[g]+b[w])}}function c(a,c){var b=new v(a.insertCell(-1));b.setAttribute("class","ColorCell");b.setAttribute("tabIndex",-1);b.setAttribute("role","gridcell");b.on("keydown",
|
10
|
-
b.setAttribute("aria-labelledby",d);b.append(CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+d+'" class\x3d"cke_voice_label"\x3e'+c+"\x3c/span\x3e",CKEDITOR.document))}h=CKEDITOR.dom.element.createFromHtml('\x3ctable tabIndex\x3d"-1" aria-label\x3d"'+
|
11
|
-
h.on("mouseout",
|
12
|
-
|
13
|
-
|
5
|
+
CKEDITOR.dialog.add("colordialog",function(x){function m(){e.getById(n).removeStyle("background-color");p.getContentElement("picker","selectedColor").setValue("");y()}function z(a){a=a.data.getTarget();var c;"td"==a.getName()&&(c=a.getChild(0).getHtml())&&(y(),f=a,f.setAttribute("aria-selected",!0),f.addClass("cke_colordialog_selected"),p.getContentElement("picker","selectedColor").setValue(c))}function y(){f&&(f.removeClass("cke_colordialog_selected"),f.removeAttribute("aria-selected"),f=null)}function D(a){a=
|
6
|
+
a.replace(/^#/,"");for(var c=0,b=[];2>=c;c++)b[c]=parseInt(a.substr(2*c,2),16);return 165<=.2126*b[0]+.7152*b[1]+.0722*b[2]}function A(a){!a.name&&(a=new CKEDITOR.event(a));var c=!/mouse/.test(a.name),b=a.data.getTarget(),k;"td"==b.getName()&&(k=b.getChild(0).getHtml())&&(q(a),c?d=b:B=b,c&&b.addClass(D(k)?"cke_colordialog_focused_light":"cke_colordialog_focused_dark"),r(k))}function q(a){if(a=!/mouse/.test(a.name)&&d)a.removeClass("cke_colordialog_focused_light"),a.removeClass("cke_colordialog_focused_dark");
|
7
|
+
d||B||r(!1)}function r(a){a?(e.getById(t).setStyle("background-color",a),e.getById(u).setHtml(a)):(e.getById(t).removeStyle("background-color"),e.getById(u).setHtml("\x26nbsp;"))}function E(a){var c=a.data,b=c.getTarget(),k=c.getKeystroke(),d="rtl"==x.lang.dir;switch(k){case 38:if(a=b.getParent().getPrevious())a=a.getChild([b.getIndex()]),a.focus();c.preventDefault();break;case 40:(a=b.getParent().getNext())&&(a=a.getChild([b.getIndex()]))&&1==a.type&&a.focus();c.preventDefault();break;case 32:case 13:z(a);
|
8
|
+
c.preventDefault();break;case d?37:39:(a=b.getNext())?1==a.type&&(a.focus(),c.preventDefault(!0)):(a=b.getParent().getNext())&&(a=a.getChild([0]))&&1==a.type&&(a.focus(),c.preventDefault(!0));break;case d?39:37:if(a=b.getPrevious())a.focus(),c.preventDefault(!0);else if(a=b.getParent().getPrevious())a=a.getLast(),a.focus(),c.preventDefault(!0)}}var v=CKEDITOR.dom.element,e=CKEDITOR.document,g=x.lang.colordialog,p,f,C={type:"html",html:"\x26nbsp;"},l=function(a){return CKEDITOR.tools.getNextId()+"_"+
|
9
|
+
a},t=l("hicolor"),u=l("hicolortext"),n=l("selhicolor"),h,d,B;(function(){function a(a,d){for(var w=a;w<a+3;w++){var e=new v(h.$.insertRow(-1));e.setAttribute("role","row");for(var f=d;f<d+3;f++)for(var g=0;6>g;g++)c(e.$,"#"+b[f]+b[g]+b[w])}}function c(a,c){var b=new v(a.insertCell(-1));b.setAttribute("class","ColorCell cke_colordialog_colorcell");b.setAttribute("tabIndex",-1);b.setAttribute("role","gridcell");b.on("keydown",E);b.on("click",z);b.on("focus",A);b.on("blur",q);b.setStyle("background-color",
|
10
|
+
c);var d=l("color_table_cell");b.setAttribute("aria-labelledby",d);b.append(CKEDITOR.dom.element.createFromHtml('\x3cspan id\x3d"'+d+'" class\x3d"cke_voice_label"\x3e'+c+"\x3c/span\x3e",CKEDITOR.document))}h=CKEDITOR.dom.element.createFromHtml('\x3ctable tabIndex\x3d"-1" class\x3d"cke_colordialog_table" aria-label\x3d"'+g.options+'" role\x3d"grid" style\x3d"border-collapse:separate;" cellspacing\x3d"0"\x3e\x3ccaption class\x3d"cke_voice_label"\x3e'+g.options+'\x3c/caption\x3e\x3ctbody role\x3d"presentation"\x3e\x3c/tbody\x3e\x3c/table\x3e');
|
11
|
+
h.on("mouseover",A);h.on("mouseout",q);var b="00 33 66 99 cc ff".split(" ");a(0,0);a(3,0);a(0,3);a(3,3);var d=new v(h.$.insertRow(-1));d.setAttribute("role","row");c(d.$,"#000000");for(var f=0;16>f;f++){var e=f.toString(16);c(d.$,"#"+e+e+e+e+e+e)}c(d.$,"#ffffff")})();CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl(CKEDITOR.plugins.get("colordialog").path+"dialogs/colordialog.css"));return{title:g.title,minWidth:360,minHeight:220,onLoad:function(){p=this},onHide:function(){m();d&&(d.removeClass("cke_colordialog_focused_light"),
|
12
|
+
d.removeClass("cke_colordialog_focused_dark"));r(!1);d=null},contents:[{id:"picker",label:g.title,accessKey:"I",elements:[{type:"hbox",padding:0,widths:["70%","10%","30%"],children:[{type:"html",html:"\x3cdiv\x3e\x3c/div\x3e",onLoad:function(){CKEDITOR.document.getById(this.domId).append(h)},focus:function(){(d||this.getElement().getElementsByTag("td").getItem(0)).focus()}},C,{type:"vbox",padding:0,widths:["70%","5%","25%"],children:[{type:"html",html:"\x3cspan\x3e"+g.highlight+'\x3c/span\x3e\x3cdiv id\x3d"'+
|
13
|
+
t+'" style\x3d"border: 1px solid; height: 74px; width: 74px;"\x3e\x3c/div\x3e\x3cdiv id\x3d"'+u+'"\x3e\x26nbsp;\x3c/div\x3e\x3cspan\x3e'+g.selected+'\x3c/span\x3e\x3cdiv id\x3d"'+n+'" style\x3d"border: 1px solid; height: 20px; width: 74px;"\x3e\x3c/div\x3e'},{type:"text",label:g.selected,labelStyle:"display:none",id:"selectedColor",style:"width: 76px;margin-top:4px",onChange:function(){try{e.getById(n).setStyle("background-color",this.getValue())}catch(a){m()}}},C,{type:"button",id:"clear",label:g.clear,
|
14
|
+
onClick:m}]}]}]}]}});
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
@@ -7,9 +7,11 @@ CKEDITOR.plugins.add 'effective_assets',
|
|
7
7
|
|
8
8
|
OpenEffectiveAssetsSnippetDialog = {
|
9
9
|
exec: (editor) ->
|
10
|
-
if (command = editor.getCommand('
|
10
|
+
if (command = editor.getCommand('effective_assets'))
|
11
|
+
command.exec(editor)
|
12
|
+
else if (command = editor.getCommand('ck_asset'))
|
11
13
|
command.exec(editor)
|
12
14
|
else
|
13
|
-
alert('This function is currently disabled.
|
15
|
+
alert('This function is currently disabled.')
|
14
16
|
}
|
15
17
|
|
@@ -1,24 +1,25 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
(function(){function C(c){return c.type==CKEDITOR.NODE_TEXT&&0<c.getLength()&&(!
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
for(var c=0;c<a.length;c++)for(d.push(d[c]+1);0<d[c+1]&&a.charAt(c)!=a.charAt(d[c+1]-1);)d[c+1]=d[d[c+1]-1]+1;this._={overlap:d,
|
13
|
-
A=function(a){
|
14
|
-
|
15
|
-
|
16
|
-
this.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
onClick:function(){var a=this.getDialog();
|
21
|
-
|
22
|
-
|
23
|
-
b=this.
|
24
|
-
|
5
|
+
(function(){function C(c){return c.type==CKEDITOR.NODE_TEXT&&0<c.getLength()&&(!m||!c.isReadOnly())}function v(c){return!(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)))}var m,w=function(){return{textNode:this.textNode,offset:this.offset,character:this.textNode?this.textNode.getText().charAt(this.offset):null,hitMatchBoundary:this._.matchBoundary}},x=["find","replace"],q=[["txtFindFind","txtFindReplace"],["txtFindCaseChk",
|
6
|
+
"txtReplaceCaseChk"],["txtFindWordChk","txtReplaceWordChk"],["txtFindCyclic","txtReplaceCyclic"]];CKEDITOR.dialog.add("find",function(c){function n(a,b){var d=this,c=new CKEDITOR.dom.walker(a);c.guard=b?v:function(a){!v(a)&&(d._.matchBoundary=!0)};c.evaluator=C;c.breakOnFalse=1;a.startContainer.type==CKEDITOR.NODE_TEXT&&(this.textNode=a.startContainer,this.offset=a.startOffset-1);this._={matchWord:b,walker:c,matchBoundary:!1}}function y(a,b){var d=c.createRange();d.setStart(a.textNode,b?a.offset:
|
7
|
+
a.offset+1);d.setEndAt(c.editable(),CKEDITOR.POSITION_BEFORE_END);return d}function r(a){var b=c.getSelection().getRanges()[0],d=c.editable();b&&!a?(a=b.clone(),a.collapse(!0)):(a=c.createRange(),a.setStartAt(d,CKEDITOR.POSITION_AFTER_START));a.setEndAt(d,CKEDITOR.POSITION_BEFORE_END);return a}var z=new CKEDITOR.style(CKEDITOR.tools.extend({attributes:{"data-cke-highlight":1},fullMatch:1,ignoreReadonly:1,childRule:function(){return 0}},c.config.find_highlight,!0));n.prototype={next:function(){return this.move()},
|
8
|
+
back:function(){return this.move(!0)},move:function(a){var b=this.textNode;if(null===b)return w.call(this);this._.matchBoundary=!1;if(b&&a&&0<this.offset)this.offset--;else if(b&&this.offset<b.getLength()-1)this.offset++;else{for(b=null;!b&&!(b=this._.walker[a?"previous":"next"].call(this._.walker),this._.matchWord&&!b||this._.walker._.end););this.offset=(this.textNode=b)?a?b.getLength()-1:0:0}return w.call(this)}};var t=function(a,b){this._={walker:a,cursors:[],rangeLength:b,highlightRange:null,
|
9
|
+
isMatched:0}};t.prototype={toDomRange:function(){var a=c.createRange(),b=this._.cursors;if(1>b.length){var d=this._.walker.textNode;if(d)a.setStartAfter(d);else return null}else d=b[0],b=b[b.length-1],a.setStart(d.textNode,d.offset),a.setEnd(b.textNode,b.offset+1);return a},updateFromDomRange:function(a){var b=new n(a);this._.cursors=[];do a=b.next(),a.character&&this._.cursors.push(a);while(a.character);this._.rangeLength=this._.cursors.length},setMatched:function(){this._.isMatched=!0},clearMatched:function(){this._.isMatched=
|
10
|
+
!1},isMatched:function(){return this._.isMatched},highlight:function(){if(!(1>this._.cursors.length)){this._.highlightRange&&this.removeHighlight();var a=this.toDomRange(),b=a.createBookmark();z.applyToRange(a,c);a.moveToBookmark(b);this._.highlightRange=a;b=a.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent());b.scrollIntoView();this.updateFromDomRange(a)}},removeHighlight:function(){if(this._.highlightRange){var a=this._.highlightRange.createBookmark();z.removeFromRange(this._.highlightRange,
|
11
|
+
c);this._.highlightRange.moveToBookmark(a);this.updateFromDomRange(this._.highlightRange);this._.highlightRange=null}},isReadOnly:function(){return this._.highlightRange?this._.highlightRange.startContainer.isReadOnly():0},moveBack:function(){var a=this._.walker.back(),b=this._.cursors;a.hitMatchBoundary&&(this._.cursors=b=[]);b.unshift(a);b.length>this._.rangeLength&&b.pop();return a},moveNext:function(){var a=this._.walker.next(),b=this._.cursors;a.hitMatchBoundary&&(this._.cursors=b=[]);b.push(a);
|
12
|
+
b.length>this._.rangeLength&&b.shift();return a},getEndCharacter:function(){var a=this._.cursors;return 1>a.length?null:a[a.length-1].character},getNextCharacterRange:function(a){var b,d;d=this._.cursors;d=(b=d[d.length-1])&&b.textNode?new n(y(b)):this._.walker;return new t(d,a)},getCursors:function(){return this._.cursors}};var A=function(a,b){var d=[-1];b&&(a=a.toLowerCase());for(var c=0;c<a.length;c++)for(d.push(d[c]+1);0<d[c+1]&&a.charAt(c)!=a.charAt(d[c+1]-1);)d[c+1]=d[d[c+1]-1]+1;this._={overlap:d,
|
13
|
+
state:0,ignoreCase:!!b,pattern:a}};A.prototype={feedCharacter:function(a){for(this._.ignoreCase&&(a=a.toLowerCase());;){if(a==this._.pattern.charAt(this._.state))return this._.state++,this._.state==this._.pattern.length?(this._.state=0,2):1;if(this._.state)this._.state=this._.overlap[this._.state];else return 0}},reset:function(){this._.state=0}};var D=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,B=function(a){if(!a)return!0;var b=a.charCodeAt(0);return 9<=b&&13>=b||8192<=b&&
|
14
|
+
8202>=b||D.test(a)},f={searchRange:null,matchRange:null,find:function(a,b,d,e,f,u){this.matchRange?(this.matchRange.removeHighlight(),this.matchRange=this.matchRange.getNextCharacterRange(a.length)):this.matchRange=new t(new n(this.searchRange),a.length);for(var h=new A(a,!b),k=0,l="%";null!==l;){for(this.matchRange.moveNext();l=this.matchRange.getEndCharacter();){k=h.feedCharacter(l);if(2==k)break;this.matchRange.moveNext().hitMatchBoundary&&h.reset()}if(2==k){if(d){var g=this.matchRange.getCursors(),
|
15
|
+
p=g[g.length-1],g=g[0],m=c.createRange();m.setStartAt(c.editable(),CKEDITOR.POSITION_AFTER_START);m.setEnd(g.textNode,g.offset);g=m;p=y(p);g.trim();p.trim();g=new n(g,!0);p=new n(p,!0);if(!B(g.back().character)||!B(p.next().character))continue}this.matchRange.setMatched();!1!==f&&this.matchRange.highlight();return!0}}this.matchRange.clearMatched();this.matchRange.removeHighlight();return e&&!u?(this.searchRange=r(1),this.matchRange=null,arguments.callee.apply(this,Array.prototype.slice.call(arguments).concat([!0]))):
|
16
|
+
!1},replaceCounter:0,replace:function(a,b,d,e,f,u,h){m=1;a=0;a=this.hasMatchOptionsChanged(b,e,f);if(!this.matchRange||!this.matchRange.isMatched()||this.matchRange._.isReplaced||this.matchRange.isReadOnly()||a)a&&this.matchRange&&(this.matchRange.clearMatched(),this.matchRange.removeHighlight(),this.matchRange=null),a=this.find(b,e,f,u,!h);else{this.matchRange.removeHighlight();b=this.matchRange.toDomRange();d=c.document.createText(d);if(!h){var k=c.getSelection();k.selectRanges([b]);c.fire("saveSnapshot")}b.deleteContents();
|
17
|
+
b.insertNode(d);h||(k.selectRanges([b]),c.fire("saveSnapshot"));this.matchRange.updateFromDomRange(b);h||this.matchRange.highlight();this.matchRange._.isReplaced=!0;this.replaceCounter++;a=1}m=0;return a},matchOptions:null,hasMatchOptionsChanged:function(a,b,d){a=[a,b,d].join(".");b=this.matchOptions&&this.matchOptions!=a;this.matchOptions=a;return b}},e=c.lang.find;return{title:e.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:170,buttons:[CKEDITOR.dialog.cancelButton(c,{label:c.lang.common.close})],
|
18
|
+
contents:[{id:"find",label:e.find,title:e.find,accessKey:"",elements:[{type:"hbox",widths:["230px","90px"],children:[{type:"text",id:"txtFindFind",label:e.findWhat,isChanged:!1,labelLayout:"horizontal",accessKey:"F"},{type:"button",id:"btnFind",align:"left",style:"width:100%",label:e.find,onClick:function(){var a=this.getDialog();f.find(a.getValueOf("find","txtFindFind"),a.getValueOf("find","txtFindCaseChk"),a.getValueOf("find","txtFindWordChk"),a.getValueOf("find","txtFindCyclic"))||alert(e.notFoundMsg)}}]},
|
19
|
+
{type:"fieldset",className:"cke_dialog_find_fieldset",label:CKEDITOR.tools.htmlEncode(e.findOptions),style:"margin-top:29px",children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"txtFindCaseChk",isChanged:!1,label:e.matchCase},{type:"checkbox",id:"txtFindWordChk",isChanged:!1,label:e.matchWord},{type:"checkbox",id:"txtFindCyclic",isChanged:!1,"default":!0,label:e.matchCyclic}]}]}]},{id:"replace",label:e.replace,accessKey:"M",elements:[{type:"hbox",widths:["230px","90px"],children:[{type:"text",
|
20
|
+
id:"txtFindReplace",label:e.findWhat,isChanged:!1,labelLayout:"horizontal",accessKey:"F"},{type:"button",id:"btnFindReplace",align:"left",style:"width:100%",label:e.replace,onClick:function(){var a=this.getDialog();f.replace(a,a.getValueOf("replace","txtFindReplace"),a.getValueOf("replace","txtReplace"),a.getValueOf("replace","txtReplaceCaseChk"),a.getValueOf("replace","txtReplaceWordChk"),a.getValueOf("replace","txtReplaceCyclic"))||alert(e.notFoundMsg)}}]},{type:"hbox",widths:["230px","90px"],children:[{type:"text",
|
21
|
+
id:"txtReplace",label:e.replaceWith,isChanged:!1,labelLayout:"horizontal",accessKey:"R"},{type:"button",id:"btnReplaceAll",align:"left",style:"width:100%",label:e.replaceAll,isChanged:!1,onClick:function(){var a=this.getDialog();f.replaceCounter=0;f.searchRange=r(1);f.matchRange&&(f.matchRange.removeHighlight(),f.matchRange=null);for(c.fire("saveSnapshot");f.replace(a,a.getValueOf("replace","txtFindReplace"),a.getValueOf("replace","txtReplace"),a.getValueOf("replace","txtReplaceCaseChk"),a.getValueOf("replace",
|
22
|
+
"txtReplaceWordChk"),!1,!0););f.replaceCounter?(alert(e.replaceSuccessMsg.replace(/%1/,f.replaceCounter)),c.fire("saveSnapshot")):alert(e.notFoundMsg)}}]},{type:"fieldset",label:CKEDITOR.tools.htmlEncode(e.findOptions),children:[{type:"vbox",padding:0,children:[{type:"checkbox",id:"txtReplaceCaseChk",isChanged:!1,label:e.matchCase},{type:"checkbox",id:"txtReplaceWordChk",isChanged:!1,label:e.matchWord},{type:"checkbox",id:"txtReplaceCyclic",isChanged:!1,"default":!0,label:e.matchCyclic}]}]}]}],onLoad:function(){var a=
|
23
|
+
this,b,d=0;this.on("hide",function(){d=0});this.on("show",function(){d=1});this.selectPage=CKEDITOR.tools.override(this.selectPage,function(c){return function(e){c.call(a,e);var f=a._.tabs[e],h;h="find"===e?"txtFindWordChk":"txtReplaceWordChk";b=a.getContentElement(e,"find"===e?"txtFindFind":"txtFindReplace");a.getContentElement(e,h);f.initialized||(CKEDITOR.document.getById(b._.inputId),f.initialized=!0);if(d){var k;e="find"===e?1:0;var f=1-e,l,g=q.length;for(l=0;l<g;l++)h=this.getContentElement(x[e],
|
24
|
+
q[l][e]),k=this.getContentElement(x[f],q[l][f]),k.setValue(h.getValue())}}})},onShow:function(){f.searchRange=r();var a=this._.currentTabId,b=this.getParentEditor().getSelection().getSelectedText(),c=this.getContentElement(a,"find"==a?"txtFindFind":"txtFindReplace");c.setValue(b);c.select();this[("find"==a&&this._.editor.readOnly?"hide":"show")+"Page"]("replace")},onHide:function(){var a;f.matchRange&&f.matchRange.isMatched()&&(f.matchRange.removeHighlight(),(a=f.matchRange.toDomRange())&&c.getSelection().selectRanges([a]),
|
25
|
+
c.focus());delete f.matchRange},onFocus:function(){return"replace"==this._.currentTabId?this.getContentElement("replace","txtFindReplace"):this.getContentElement("find","txtFindFind")}}})})();
|
Binary file
|
Binary file
|
@@ -1,14 +1,15 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
CKEDITOR.dialog.add("image2",function(
|
6
|
-
"")+
|
7
|
-
c*d);isNaN(a)||(b?h:g).setValue(a)}}}function m(a){if(
|
8
|
-
c=
|
9
|
-
b.resetSize+"\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e")).output({lockButtonId:
|
10
|
-
id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:
|
11
|
-
commit:function(a){a.setData("alt",this.getValue())}},{type:"hbox",widths:["25%","25%","50%"],requiredContent:A.dimension.requiredContent,children:[{type:"text",width:"45px",id:"width",label:c.width,validate:
|
12
|
-
this.getValue())}},{id:"lock",type:"html",style:"margin-top:18px;width:40px;height:20px;",onLoad:function(){function a(a){a.on("mouseover",function(){this.addClass("cke_btn_over")},a);a.on("mouseout",function(){this.removeClass("cke_btn_over")},a)}var b=this.getDialog();
|
13
|
-
h.setValue(
|
14
|
-
requiredContent:A.caption.requiredContent,setup:function(a){this.setValue(a.data.hasCaption)},commit:function(a){a.setData("hasCaption",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:b.uploadTab,elements:[{type:"file",id:"upload",label:b.btnUpload,style:"height:40px"},{type:"fileButton",
|
5
|
+
CKEDITOR.dialog.add("image2",function(f){function C(){var a=this.getValue().match(D);(a=!(!a||0===parseInt(a[1],10)))||alert(c.invalidLength.replace("%1",c[this.id]).replace("%2","px"));return a}function N(){function a(a,c){q.push(b.once(a,function(a){for(var b;b=q.pop();)b.removeListener();c(a)}))}var b=r.createElement("img"),q=[];return function(q,c,e){a("load",function(){var a=E(b);c.call(e,b,a.width,a.height)});a("error",function(){c(null)});a("abort",function(){c(null)});b.setAttribute("src",
|
6
|
+
(w.baseHref||"")+q+"?"+Math.random().toString(16).substring(2))}}function F(){var a=this.getValue();t(!1);a!==x.data.src?(G(a,function(a,b,c){t(!0);if(!a)return m(!1);g.setValue(!1===f.config.image2_prefillDimensions?0:b);h.setValue(!1===f.config.image2_prefillDimensions?0:c);u=k=b;v=l=c;m(H.checkHasNaturalRatio(a))}),n=!0):n?(t(!0),g.setValue(k),h.setValue(l),n=!1):t(!0)}function I(){if(e){var a=this.getValue();if(a&&(a.match(D)||m(!1),"0"!==a)){var b="width"==this.id,c=k||u,d=l||v,a=b?Math.round(a/
|
7
|
+
c*d):Math.round(a/d*c);isNaN(a)||(b?h:g).setValue(a)}}}function m(a){if(d){if("boolean"==typeof a){if(y)return;e=a}else a=g.getValue(),y=!0,(e=!e)&&a&&(a*=l/k,isNaN(a)||h.setValue(Math.round(a)));d[e?"removeClass":"addClass"]("cke_btn_unlocked");d.setAttribute("aria-checked",e);CKEDITOR.env.hc&&d.getChild(0).setHtml(e?CKEDITOR.env.ie?"■":"▣":CKEDITOR.env.ie?"□":"▢")}}function t(a){a=a?"enable":"disable";g[a]();h[a]()}var D=/(^\s*(\d+)(px)?\s*$)|^$/i,J=CKEDITOR.tools.getNextId(),K=CKEDITOR.tools.getNextId(),
|
8
|
+
b=f.lang.image2,c=f.lang.common,O=(new CKEDITOR.template('\x3cdiv\x3e\x3ca href\x3d"javascript:void(0)" tabindex\x3d"-1" title\x3d"'+b.lockRatio+'" class\x3d"cke_btn_locked" id\x3d"{lockButtonId}" role\x3d"checkbox"\x3e\x3cspan class\x3d"cke_icon"\x3e\x3c/span\x3e\x3cspan class\x3d"cke_label"\x3e'+b.lockRatio+'\x3c/span\x3e\x3c/a\x3e\x3ca href\x3d"javascript:void(0)" tabindex\x3d"-1" title\x3d"'+b.resetSize+'" class\x3d"cke_btn_reset" id\x3d"{resetButtonId}" role\x3d"button"\x3e\x3cspan class\x3d"cke_label"\x3e'+
|
9
|
+
b.resetSize+"\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e")).output({lockButtonId:J,resetButtonId:K}),H=CKEDITOR.plugins.image2,w=f.config,z=!(!w.filebrowserImageBrowseUrl&&!w.filebrowserBrowseUrl),A=f.widgets.registered.image.features,E=H.getNatural,r,x,L,G,k,l,u,v,n,e,y,d,p,g,h,B,M=[{id:"src",type:"text",label:c.url,onKeyup:F,onChange:F,setup:function(a){this.setValue(a.data.src)},commit:function(a){a.setData("src",this.getValue())},validate:CKEDITOR.dialog.validate.notEmpty(b.urlMissing)}];z&&M.push({type:"button",
|
10
|
+
id:"browse",style:"display:inline-block;margin-top:14px;",align:"center",label:f.lang.common.browseServer,hidden:!0,filebrowser:"info:src"});return{title:b.title,minWidth:250,minHeight:100,onLoad:function(){r=this._.element.getDocument();G=N()},onShow:function(){x=this.widget;L=x.parts.image;n=y=e=!1;B=E(L);u=k=B.width;v=l=B.height},contents:[{id:"info",label:b.infoTab,elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["100%"],className:"cke_dialog_image_url",children:M}]},{id:"alt",
|
11
|
+
type:"text",label:b.alt,setup:function(a){this.setValue(a.data.alt)},commit:function(a){a.setData("alt",this.getValue())},validate:!0===f.config.image2_altRequired?CKEDITOR.dialog.validate.notEmpty(b.altMissing):null},{type:"hbox",widths:["25%","25%","50%"],requiredContent:A.dimension.requiredContent,children:[{type:"text",width:"45px",id:"width",label:c.width,validate:C,onKeyUp:I,onLoad:function(){g=this},setup:function(a){this.setValue(a.data.width)},commit:function(a){a.setData("width",this.getValue())}},
|
12
|
+
{type:"text",id:"height",width:"45px",label:c.height,validate:C,onKeyUp:I,onLoad:function(){h=this},setup:function(a){this.setValue(a.data.height)},commit:function(a){a.setData("height",this.getValue())}},{id:"lock",type:"html",style:"margin-top:18px;width:40px;height:20px;",onLoad:function(){function a(a){a.on("mouseover",function(){this.addClass("cke_btn_over")},a);a.on("mouseout",function(){this.removeClass("cke_btn_over")},a)}var b=this.getDialog();d=r.getById(J);p=r.getById(K);d&&(b.addFocusable(d,
|
13
|
+
4+z),d.on("click",function(a){m();a.data&&a.data.preventDefault()},this.getDialog()),a(d));p&&(b.addFocusable(p,5+z),p.on("click",function(a){n?(g.setValue(u),h.setValue(v)):(g.setValue(k),h.setValue(l));a.data&&a.data.preventDefault()},this),a(p))},setup:function(a){m(a.data.lock)},commit:function(a){a.setData("lock",e)},html:O}]},{type:"hbox",id:"alignment",requiredContent:A.align.requiredContent,children:[{id:"align",type:"radio",items:[[c.alignNone,"none"],[c.left,"left"],[c.center,"center"],
|
14
|
+
[c.right,"right"]],label:c.align,setup:function(a){this.setValue(a.data.align)},commit:function(a){a.setData("align",this.getValue())}}]},{id:"hasCaption",type:"checkbox",label:b.captioned,requiredContent:A.caption.requiredContent,setup:function(a){this.setValue(a.data.hasCaption)},commit:function(a){a.setData("hasCaption",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:b.uploadTab,elements:[{type:"file",id:"upload",label:b.btnUpload,style:"height:40px"},{type:"fileButton",
|
15
|
+
id:"uploadButton",filebrowser:"info:src",label:b.btnUpload,"for":["Upload","upload"]}]}]}});
|
@@ -1,7 +1,8 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
CKEDITOR.dialog.add("anchor",function(c){function
|
6
|
-
|
7
|
-
if(
|
5
|
+
CKEDITOR.dialog.add("anchor",function(c){function e(b,a){return b.createFakeElement(b.document.createElement("a",{attributes:a}),"cke_anchor","anchor")}return{title:c.lang.link.anchor.title,minWidth:300,minHeight:60,onOk:function(){var b=CKEDITOR.tools.trim(this.getValueOf("info","txtName")),a={id:b,name:b,"data-cke-saved-name":b};this._.selectedElement?this._.selectedElement.data("cke-realelement")?(b=e(c,a),b.replace(this._.selectedElement),CKEDITOR.env.ie&&c.getSelection().selectElement(b)):this._.selectedElement.setAttributes(a):
|
6
|
+
(b=(b=c.getSelection())&&b.getRanges()[0],b.collapsed?(a=e(c,a),b.insertNode(a)):(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(a["class"]="cke_anchor"),a=new CKEDITOR.style({element:"a",attributes:a}),a.type=CKEDITOR.STYLE_INLINE,a.applyToRange(b)))},onHide:function(){delete this._.selectedElement},onShow:function(){var b=c.getSelection(),a;a=b.getRanges()[0];var d=b.getSelectedElement();a.shrink(CKEDITOR.SHRINK_ELEMENT);a=(d=a.getEnclosedNode())&&d.type===CKEDITOR.NODE_ELEMENT&&("anchor"===d.data("cke-real-element-type")||
|
7
|
+
d.is("a"))?d:void 0;var f=(d=a&&a.data("cke-realelement"))?CKEDITOR.plugins.link.tryRestoreFakeAnchor(c,a):CKEDITOR.plugins.link.getSelectedLink(c);if(f){this._.selectedElement=f;var e=f.data("cke-saved-name");this.setValueOf("info","txtName",e||"");!d&&b.selectElement(f);a&&(this._.selectedElement=a)}this.getContentElement("info","txtName").focus()},contents:[{id:"info",label:c.lang.link.anchor.title,accessKey:"I",elements:[{type:"text",id:"txtName",label:c.lang.link.anchor.name,required:!0,validate:function(){return this.getValue()?
|
8
|
+
!0:(alert(c.lang.link.anchor.errorName),!1)}}]}]}});
|
@@ -1,26 +1,30 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
(function(){
|
6
|
-
|
7
|
-
[
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
0
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
label:b.
|
22
|
-
|
23
|
-
requiredContent:"a
|
24
|
-
|
25
|
-
|
26
|
-
|
5
|
+
(function(){function u(){var c=this.getDialog(),p=c._.editor,n=p.config.linkPhoneRegExp,q=p.config.linkPhoneMsg,p=CKEDITOR.dialog.validate.notEmpty(p.lang.link.noTel).apply(this);if(!c.getContentElement("info","linkType")||"tel"!=c.getValueOf("info","linkType"))return!0;if(!0!==p)return p;if(n)return CKEDITOR.dialog.validate.regex(n,q).call(this)}CKEDITOR.dialog.add("link",function(c){function p(a,b){var c=a.createRange();c.setStartBefore(b);c.setEndAfter(b);return c}var n=CKEDITOR.plugins.link,q,
|
6
|
+
t=function(){var a=this.getDialog(),b=a.getContentElement("target","popupFeatures"),a=a.getContentElement("target","linkTargetName"),r=this.getValue();if(b&&a)switch(b=b.getElement(),b.hide(),a.setValue(""),r){case "frame":a.setLabel(c.lang.link.targetFrameName);a.getElement().show();break;case "popup":b.show();a.setLabel(c.lang.link.targetPopupName);a.getElement().show();break;default:a.setValue(r),a.getElement().hide()}},l=function(a){a.target&&this.setValue(a.target[this.id]||"")},e=function(a){a.advanced&&
|
7
|
+
this.setValue(a.advanced[this.id]||"")},k=function(a){a.target||(a.target={});a.target[this.id]=this.getValue()||""},m=function(a){a.advanced||(a.advanced={});a.advanced[this.id]=this.getValue()||""},g=c.lang.common,b=c.lang.link,d;return{title:b.title,minWidth:"moono-lisa"==(CKEDITOR.skinName||c.config.skin)?450:350,minHeight:240,contents:[{id:"info",label:b.info,title:b.info,elements:[{type:"text",id:"linkDisplayText",label:b.displayText,setup:function(){this.enable();this.setValue(c.getSelection().getSelectedText());
|
8
|
+
q=this.getValue()},commit:function(a){a.linkText=this.isEnabled()?this.getValue():""}},{id:"linkType",type:"select",label:b.type,"default":"url",items:[[b.toUrl,"url"],[b.toAnchor,"anchor"],[b.toEmail,"email"],[b.toPhone,"tel"]],onChange:function(){var a=this.getDialog(),b=["urlOptions","anchorOptions","emailOptions","telOptions"],r=this.getValue(),f=a.definition.getContents("upload"),f=f&&f.hidden;"url"==r?(c.config.linkShowTargetTab&&a.showPage("target"),f||a.showPage("upload")):(a.hidePage("target"),
|
9
|
+
f||a.hidePage("upload"));for(f=0;f<b.length;f++){var h=a.getContentElement("info",b[f]);h&&(h=h.getElement().getParent().getParent(),b[f]==r+"Options"?h.show():h.hide())}a.layout()},setup:function(a){this.setValue(a.type||"url")},commit:function(a){a.type=this.getValue()}},{type:"vbox",id:"urlOptions",children:[{type:"hbox",widths:["25%","75%"],children:[{id:"protocol",type:"select",label:g.protocol,"default":"http://",items:[["http://","http://"],["https://","https://"],["ftp://","ftp://"],["news://",
|
10
|
+
"news://"],[b.other,""]],setup:function(a){a.url&&this.setValue(a.url.protocol||"")},commit:function(a){a.url||(a.url={});a.url.protocol=this.getValue()}},{type:"text",id:"url",label:g.url,required:!0,onLoad:function(){this.allowOnChange=!0},onKeyUp:function(){this.allowOnChange=!1;var a=this.getDialog().getContentElement("info","protocol"),b=this.getValue(),c=/^((javascript:)|[#\/\.\?])/i,f=/^(http|https|ftp|news):\/\/(?=.)/i.exec(b);f?(this.setValue(b.substr(f[0].length)),a.setValue(f[0].toLowerCase())):
|
11
|
+
c.test(b)&&a.setValue("");this.allowOnChange=!0},onChange:function(){if(this.allowOnChange)this.onKeyUp()},validate:function(){var a=this.getDialog();return a.getContentElement("info","linkType")&&"url"!=a.getValueOf("info","linkType")?!0:!c.config.linkJavaScriptLinksAllowed&&/javascript\:/.test(this.getValue())?(alert(g.invalidValue),!1):this.getDialog().fakeObj?!0:CKEDITOR.dialog.validate.notEmpty(b.noUrl).apply(this)},setup:function(a){this.allowOnChange=!1;a.url&&this.setValue(a.url.url);this.allowOnChange=
|
12
|
+
!0},commit:function(a){this.onChange();a.url||(a.url={});a.url.url=this.getValue();this.allowOnChange=!1}}],setup:function(){this.getDialog().getContentElement("info","linkType")||this.getElement().show()}},{type:"button",id:"browse",hidden:"true",filebrowser:"info:url",label:g.browseServer}]},{type:"vbox",id:"anchorOptions",width:260,align:"center",padding:0,children:[{type:"fieldset",id:"selectAnchorText",label:b.selectAnchor,setup:function(){d=n.getEditorAnchors(c);this.getElement()[d&&d.length?
|
13
|
+
"show":"hide"]()},children:[{type:"hbox",id:"selectAnchor",children:[{type:"select",id:"anchorName","default":"",label:b.anchorName,style:"width: 100%;",items:[[""]],setup:function(a){this.clear();this.add("");if(d)for(var b=0;b<d.length;b++)d[b].name&&this.add(d[b].name);a.anchor&&this.setValue(a.anchor.name);(a=this.getDialog().getContentElement("info","linkType"))&&"email"==a.getValue()&&this.focus()},commit:function(a){a.anchor||(a.anchor={});a.anchor.name=this.getValue()}},{type:"select",id:"anchorId",
|
14
|
+
"default":"",label:b.anchorId,style:"width: 100%;",items:[[""]],setup:function(a){this.clear();this.add("");if(d)for(var b=0;b<d.length;b++)d[b].id&&this.add(d[b].id);a.anchor&&this.setValue(a.anchor.id)},commit:function(a){a.anchor||(a.anchor={});a.anchor.id=this.getValue()}}],setup:function(){this.getElement()[d&&d.length?"show":"hide"]()}}]},{type:"html",id:"noAnchors",style:"text-align: center;",html:'\x3cdiv role\x3d"note" tabIndex\x3d"-1"\x3e'+CKEDITOR.tools.htmlEncode(b.noAnchors)+"\x3c/div\x3e",
|
15
|
+
focus:!0,setup:function(){this.getElement()[d&&d.length?"hide":"show"]()}}],setup:function(){this.getDialog().getContentElement("info","linkType")||this.getElement().hide()}},{type:"vbox",id:"emailOptions",padding:1,children:[{type:"text",id:"emailAddress",label:b.emailAddress,required:!0,validate:function(){var a=this.getDialog();return a.getContentElement("info","linkType")&&"email"==a.getValueOf("info","linkType")?CKEDITOR.dialog.validate.notEmpty(b.noEmail).apply(this):!0},setup:function(a){a.email&&
|
16
|
+
this.setValue(a.email.address);(a=this.getDialog().getContentElement("info","linkType"))&&"email"==a.getValue()&&this.select()},commit:function(a){a.email||(a.email={});a.email.address=this.getValue()}},{type:"text",id:"emailSubject",label:b.emailSubject,setup:function(a){a.email&&this.setValue(a.email.subject)},commit:function(a){a.email||(a.email={});a.email.subject=this.getValue()}},{type:"textarea",id:"emailBody",label:b.emailBody,rows:3,"default":"",setup:function(a){a.email&&this.setValue(a.email.body)},
|
17
|
+
commit:function(a){a.email||(a.email={});a.email.body=this.getValue()}}],setup:function(){this.getDialog().getContentElement("info","linkType")||this.getElement().hide()}},{type:"vbox",id:"telOptions",padding:1,children:[{type:"tel",id:"telNumber",label:b.phoneNumber,required:!0,validate:u,setup:function(a){a.tel&&this.setValue(a.tel);(a=this.getDialog().getContentElement("info","linkType"))&&"tel"==a.getValue()&&this.select()},commit:function(a){a.tel=this.getValue()}}],setup:function(){this.getDialog().getContentElement("info",
|
18
|
+
"linkType")||this.getElement().hide()}}]},{id:"target",requiredContent:"a[target]",label:b.target,title:b.target,elements:[{type:"hbox",widths:["50%","50%"],children:[{type:"select",id:"linkTargetType",label:g.target,"default":"notSet",style:"width : 100%;",items:[[g.notSet,"notSet"],[b.targetFrame,"frame"],[b.targetPopup,"popup"],[g.targetNew,"_blank"],[g.targetTop,"_top"],[g.targetSelf,"_self"],[g.targetParent,"_parent"]],onChange:t,setup:function(a){a.target&&this.setValue(a.target.type||"notSet");
|
19
|
+
t.call(this)},commit:function(a){a.target||(a.target={});a.target.type=this.getValue()}},{type:"text",id:"linkTargetName",label:b.targetFrameName,"default":"",setup:function(a){a.target&&this.setValue(a.target.name)},commit:function(a){a.target||(a.target={});a.target.name=this.getValue().replace(/([^\x00-\x7F]|\s)/gi,"")}}]},{type:"vbox",width:"100%",align:"center",padding:2,id:"popupFeatures",children:[{type:"fieldset",label:b.popupFeatures,children:[{type:"hbox",children:[{type:"checkbox",id:"resizable",
|
20
|
+
label:b.popupResizable,setup:l,commit:k},{type:"checkbox",id:"status",label:b.popupStatusBar,setup:l,commit:k}]},{type:"hbox",children:[{type:"checkbox",id:"location",label:b.popupLocationBar,setup:l,commit:k},{type:"checkbox",id:"toolbar",label:b.popupToolbar,setup:l,commit:k}]},{type:"hbox",children:[{type:"checkbox",id:"menubar",label:b.popupMenuBar,setup:l,commit:k},{type:"checkbox",id:"fullscreen",label:b.popupFullScreen,setup:l,commit:k}]},{type:"hbox",children:[{type:"checkbox",id:"scrollbars",
|
21
|
+
label:b.popupScrollBars,setup:l,commit:k},{type:"checkbox",id:"dependent",label:b.popupDependent,setup:l,commit:k}]},{type:"hbox",children:[{type:"text",widths:["50%","50%"],labelLayout:"horizontal",label:g.width,id:"width",setup:l,commit:k},{type:"text",labelLayout:"horizontal",widths:["50%","50%"],label:b.popupLeft,id:"left",setup:l,commit:k}]},{type:"hbox",children:[{type:"text",labelLayout:"horizontal",widths:["50%","50%"],label:g.height,id:"height",setup:l,commit:k},{type:"text",labelLayout:"horizontal",
|
22
|
+
label:b.popupTop,widths:["50%","50%"],id:"top",setup:l,commit:k}]}]}]}]},{id:"upload",label:b.upload,title:b.upload,hidden:!0,filebrowser:"uploadButton",elements:[{type:"file",id:"upload",label:g.upload,style:"height:40px",size:29},{type:"fileButton",id:"uploadButton",label:g.uploadSubmit,filebrowser:"info:url","for":["upload","upload"]}]},{id:"advanced",label:b.advanced,title:b.advanced,elements:[{type:"vbox",padding:1,children:[{type:"hbox",widths:["45%","35%","20%"],children:[{type:"text",id:"advId",
|
23
|
+
requiredContent:"a[id]",label:b.id,setup:e,commit:m},{type:"select",id:"advLangDir",requiredContent:"a[dir]",label:b.langDir,"default":"",style:"width:110px",items:[[g.notSet,""],[b.langDirLTR,"ltr"],[b.langDirRTL,"rtl"]],setup:e,commit:m},{type:"text",id:"advAccessKey",requiredContent:"a[accesskey]",width:"80px",label:b.acccessKey,maxLength:1,setup:e,commit:m}]},{type:"hbox",widths:["45%","35%","20%"],children:[{type:"text",label:b.name,id:"advName",requiredContent:"a[name]",setup:e,commit:m},{type:"text",
|
24
|
+
label:b.langCode,id:"advLangCode",requiredContent:"a[lang]",width:"110px","default":"",setup:e,commit:m},{type:"text",label:b.tabIndex,id:"advTabIndex",requiredContent:"a[tabindex]",width:"80px",maxLength:5,setup:e,commit:m}]}]},{type:"vbox",padding:1,children:[{type:"hbox",widths:["45%","55%"],children:[{type:"text",label:b.advisoryTitle,requiredContent:"a[title]","default":"",id:"advTitle",setup:e,commit:m},{type:"text",label:b.advisoryContentType,requiredContent:"a[type]","default":"",id:"advContentType",
|
25
|
+
setup:e,commit:m}]},{type:"hbox",widths:["45%","55%"],children:[{type:"text",label:b.cssClasses,requiredContent:"a(cke-xyz)","default":"",id:"advCSSClasses",setup:e,commit:m},{type:"text",label:b.charset,requiredContent:"a[charset]","default":"",id:"advCharset",setup:e,commit:m}]},{type:"hbox",widths:["45%","55%"],children:[{type:"text",label:b.rel,requiredContent:"a[rel]","default":"",id:"advRel",setup:e,commit:m},{type:"text",label:b.styles,requiredContent:"a{cke-xyz}","default":"",id:"advStyles",
|
26
|
+
validate:CKEDITOR.dialog.validate.inlineStyle(c.lang.common.invalidInlineStyle),setup:e,commit:m}]},{type:"hbox",widths:["45%","55%"],children:[{type:"checkbox",id:"download",requiredContent:"a[download]",label:b.download,setup:function(a){void 0!==a.download&&this.setValue("checked","checked")},commit:function(a){this.getValue()&&(a.download=this.getValue())}}]}]}]}],onShow:function(){var a=this.getParentEditor(),b=a.getSelection(),c=this.getContentElement("info","linkDisplayText").getElement().getParent().getParent(),
|
27
|
+
f=n.getSelectedLink(a,!0),h=f[0]||null;h&&h.hasAttribute("href")&&(b.getSelectedElement()||b.isInTable()||b.selectElement(h));b=n.parseLinkAttributes(a,h);1>=f.length&&n.showDisplayTextForElement(h,a)?c.show():c.hide();this._.selectedElements=f;this.setupContent(b)},onOk:function(){var a={};this.commitContent(a);if(this._.selectedElements.length){var b=this._.selectedElements,g=n.getLinkAttributes(c,a),f=[],h,d,l,e,k;for(k=0;k<b.length;k++){h=b[k];d=h.data("cke-saved-href");l=h.getHtml();h.setAttributes(g.set);
|
28
|
+
h.removeAttributes(g.removed);if(a.linkText&&q!=a.linkText)e=a.linkText;else if(d==l||"email"==a.type&&-1!=l.indexOf("@"))e="email"==a.type?a.email.address:g.set["data-cke-saved-href"];e&&h.setText(e);f.push(p(c,h))}c.getSelection().selectRanges(f);delete this._.selectedElements}else{b=n.getLinkAttributes(c,a);g=c.getSelection().getRanges();f=new CKEDITOR.style({element:"a",attributes:b.set});h=[];f.type=CKEDITOR.STYLE_INLINE;for(l=0;l<g.length;l++){d=g[l];d.collapsed?(e=new CKEDITOR.dom.text(a.linkText||
|
29
|
+
("email"==a.type?a.email.address:b.set["data-cke-saved-href"]),c.document),d.insertNode(e),d.selectNodeContents(e)):q!==a.linkText&&(e=new CKEDITOR.dom.text(a.linkText,c.document),d.shrink(CKEDITOR.SHRINK_TEXT),c.editable().extractHtmlFromRange(d),d.insertNode(e));e=d._find("a");for(k=0;k<e.length;k++)e[k].remove(!0);f.applyToRange(d,c);h.push(d)}c.getSelection().selectRanges(h)}},onLoad:function(){c.config.linkShowAdvancedTab||this.hidePage("advanced");c.config.linkShowTargetTab||this.hidePage("target")},
|
30
|
+
onFocus:function(){var a=this.getContentElement("info","linkType");a&&"url"==a.getValue()&&(a=this.getContentElement("info","url"),a.select())}}})})();
|
Binary file
|
Binary file
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/*
|
2
|
-
Copyright (c) 2003-
|
3
|
-
For licensing, see LICENSE.md or
|
2
|
+
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
(function(){function d(c,d){var b;try{b=c.getSelection().getRanges()[0]}catch(f){return null}b.shrink(CKEDITOR.SHRINK_TEXT);return c.elementPath(b.getCommonAncestor()).contains(d,1)}function e(c,e){var b=c.lang.liststyle;if("bulletedListStyle"==e)return{title:b.bulletedTitle,minWidth:300,minHeight:50,contents:[{id:"info",accessKey:"I",elements:[{type:"select",label:b.type,id:"type",align:"center",style:"width:150px",items:[[b.notset,""],[b.circle,"circle"],[b.disc,"disc"],[b.square,"square"]],setup:function(a){a=
|
6
|
-
a.getStyle("list-style-type")||
|
7
|
-
"lower-alpha"],[b.upperAlpha,"upper-alpha"],[b.decimal,"decimal"]];
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
a.getStyle("list-style-type")||g[a.getAttribute("type")]||a.getAttribute("type")||"";this.setValue(a)},commit:function(a){var b=this.getValue();b?a.setStyle("list-style-type",b):a.removeStyle("list-style-type")}}]}],onShow:function(){var a=this.getParentEditor();(a=d(a,"ul"))&&this.setupContent(a)},onOk:function(){var a=this.getParentEditor();(a=d(a,"ul"))&&this.commitContent(a)}};if("numberedListStyle"==e){var h=[[b.notset,""],[b.lowerRoman,"lower-roman"],[b.upperRoman,"upper-roman"],[b.lowerAlpha,
|
7
|
+
"lower-alpha"],[b.upperAlpha,"upper-alpha"],[b.decimal,"decimal"]];return{title:b.numberedTitle,minWidth:300,minHeight:50,contents:[{id:"info",accessKey:"I",elements:[{type:"hbox",widths:["25%","75%"],children:[{label:b.start,type:"text",id:"start",validate:CKEDITOR.dialog.validate.integer(b.validateStartNumber),setup:function(a){a=a.getFirst(f).getAttribute("value")||a.getAttribute("start")||1;this.setValue(a)},commit:function(a){var b=a.getFirst(f),c=b.getAttribute("value")||a.getAttribute("start")||
|
8
|
+
1;a.getFirst(f).removeAttribute("value");var d=parseInt(this.getValue(),10);isNaN(d)?a.removeAttribute("start"):a.setAttribute("start",d);a=b;b=c;for(d=isNaN(d)?1:d;(a=a.getNext(f))&&b++;)a.getAttribute("value")==b&&a.setAttribute("value",d+b-c)}},{type:"select",label:b.type,id:"type",style:"width: 100%;",items:h,setup:function(a){a=a.getStyle("list-style-type")||g[a.getAttribute("type")]||a.getAttribute("type")||"";this.setValue(a)},commit:function(a){var b=this.getValue();b?a.setStyle("list-style-type",
|
9
|
+
b):a.removeStyle("list-style-type")}}]}]}],onShow:function(){var a=this.getParentEditor();(a=d(a,"ol"))&&this.setupContent(a)},onOk:function(){var a=this.getParentEditor();(a=d(a,"ol"))&&this.commitContent(a)}}}}var f=function(c){return c.type==CKEDITOR.NODE_ELEMENT&&c.is("li")},g={a:"lower-alpha",A:"upper-alpha",i:"lower-roman",I:"upper-roman",1:"decimal",disc:"disc",circle:"circle",square:"square"};CKEDITOR.dialog.add("numberedListStyle",function(c){return e(c,"numberedListStyle")});CKEDITOR.dialog.add("bulletedListStyle",
|
10
|
+
function(c){return e(c,"bulletedListStyle")})})();
|
@@ -1,71 +1,90 @@
|
|
1
|
-
(function(
|
2
|
-
null
|
3
|
-
|
4
|
-
(c.query.results={meta:[]});
|
5
|
-
c.query.results.link[
|
6
|
-
"embed"
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
function(a,
|
19
|
-
|
20
|
-
"video"
|
21
|
-
|
22
|
-
|
23
|
-
new
|
24
|
-
["
|
25
|
-
|
26
|
-
{templateRegex:/.*
|
27
|
-
"http://
|
28
|
-
{
|
29
|
-
|
30
|
-
|
31
|
-
"
|
32
|
-
"
|
33
|
-
|
34
|
-
"
|
35
|
-
"
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
new
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
{templateRegex:/.*
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
"
|
52
|
-
a.
|
53
|
-
|
54
|
-
|
55
|
-
new
|
56
|
-
(a
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
embedtag:{tag:"iframe",width:"
|
62
|
-
|
63
|
-
|
64
|
-
a
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
1
|
+
(function(a){function m(){return"file:"===window.location.protocol?"http://":"//"}function p(a,d){d=d?d:"";return a?p(--a,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+d):d}function q(a,d){var b=a.apiendpoint,k="",g,b=b+(0>=b.indexOf("?")?"?":"\x26"),b=b.replace("#","%23");null===a.maxWidth||"undefined"!==typeof a.params.maxwidth&&null!==a.params.maxwidth||(a.params.maxwidth=a.maxWidth);null===a.maxHeight||"undefined"!==typeof a.params.maxheight&&
|
2
|
+
null!==a.params.maxheight||(a.params.maxheight=a.maxHeight);for(g in a.params)g!=a.callbackparameter&&null!==a.params[g]&&(k+="\x26"+escape(g)+"\x3d"+a.params[g]);b+="format\x3d"+a.format+"\x26url\x3d"+escape(d)+k;"json"!=a.dataType&&(b+="\x26"+a.callbackparameter+"\x3d?");return b}function n(a,d,b){k.beforeEmbed.call(b,a);k.onEmbed.call(b,a);k.afterEmbed.call(b,a)}function f(l,d,b){if(void 0!=a("#jqoembeddata").data(d)&&"iframe"!=b.embedtag.tag){var f={code:a("#jqoembeddata").data(d)};n(f,d,l)}else if(b.yql){var f=
|
3
|
+
b.yql.from||"htmlstring",g=b.yql.url?b.yql.url(d):d,e="SELECT * FROM "+f+' WHERE url\x3d"'+g+'" and '+(/html/.test(f)?"xpath":"itemPath")+"\x3d'"+(b.yql.xpath||"/")+"'";"html"==f&&(e+=" and compat\x3d'html5'");f=a.extend({url:m()+"query.yahooapis.com/v1/public/yql",dataType:"jsonp",data:{q:e,format:"json",env:"store://datatables.org/alltableswithkeys",callback:"?"},success:function(c){if(b.yql.xpath&&"//meta|//title|//link"==b.yql.xpath){var e={};null==c.query&&(c.query={});null==c.query.results&&
|
4
|
+
(c.query.results={meta:[]});for(var h=0,f=c.query.results.meta.length;h<f;h++){var k=c.query.results.meta[h].name||c.query.results.meta[h].property||null;null!=k&&(e[k.toLowerCase()]=c.query.results.meta[h].content)}e.hasOwnProperty("title")&&e.hasOwnProperty("og:title")||null==c.query.results.title||(e.title=c.query.results.title);if(!e.hasOwnProperty("og:image")&&c.query.results.hasOwnProperty("link"))for(h=0,f=c.query.results.link.length;h<f;h++)c.query.results.link[h].hasOwnProperty("rel")&&"apple-touch-icon"==
|
5
|
+
c.query.results.link[h].rel&&("/"==c.query.results.link[h].href.charAt(0)?e["og:image"]=g.match(/^(([a-z]+:)?(\/\/)?[^\/]+\/).*$/)[1]+c.query.results.link[h].href:e["og:image"]=c.query.results.link[h].href);c=b.yql.datareturn(e)}else c=b.yql.datareturn?b.yql.datareturn(c.query.results):c.query.results.result;!1!==c&&(e=a.extend({},c),e.code=c,n(e,d,l))},error:k.onError.call(l,d,b)},k.ajaxOptions||{});a.ajax(f)}else if(b.templateRegex)if(""!==b.embedtag.tag){var f=b.embedtag.flashvars||"",e=b.embedtag.tag||
|
6
|
+
"embed",c=b.embedtag.width||"auto",h=b.embedtag.height||"auto",r=k.title||"",w=d.replace(b.templateRegex,b.apiendpoint);if(2<d.match(b.templateRegex).length&&"undefined"!=typeof d.match(b.templateRegex)[2]){var v=d.match(b.templateRegex),t=v[2].match(/[hms]+/g);t||(t=["s"]);for(var v=v[2].match(/\d+/g),u=0,x=0;x<t.length;x++)switch(t[x]){case "h":u+=Number(3600*v[x]);break;case "m":u+=Number(60*v[x]);break;case "s":u+=Number(v[x])}w=w.concat("\x26start\x3d"+u)}b.nocache||(w+="\x26jqoemcache\x3d"+
|
7
|
+
p(5));b.apikey&&(w=w.replace("_APIKEY_",k.apikeys[b.name]));k.maxHeight&&k.maxWidth&&(k.useResponsiveResize?(t=0,v=c,u=h,c>k.maxWidth&&(t=k.maxWidth/c,v=k.maxWidth,u=h*t,h*=t,c*=t),h>k.maxHeight&&(t=k.maxHeight/h,u=k.maxHeight,v=c*t,c*=t),h=u,c=v):(h=k.maxHeight,c=k.maxWidth));c=a("\x3c"+e+"/\x3e").attr("src",w).attr("width",c).attr("height",h).attr("allowfullscreen",b.embedtag.allowfullscreen||"true").attr("allowscriptaccess",b.embedtag.allowfullscreen||"always").css("max-height",k.maxHeight||"auto").css("max-width",
|
8
|
+
k.maxWidth||"auto");"embed"==e&&(c.attr("type",b.embedtag.type||"application/x-shockwave-flash").attr("flashvars",d.replace(b.templateRegex,f)),""!==r&&c.attr("aria-label",r));"iframe"==e&&(c.attr("scrolling",b.embedtag.scrolling||"no").attr("frameborder",b.embedtag.frameborder||"0"),""!==r&&c.attr("title",r));n({code:c},d,l)}else b.apiendpoint?(b.apikey&&(b.apiendpoint=b.apiendpoint.replace("_APIKEY_",k.apikeys[b.name])),f=a.extend({url:d.replace(b.templateRegex,b.apiendpoint),dataType:"jsonp",success:function(c){var e=
|
9
|
+
a.extend({},c);e.code=b.templateData(c);n(e,d,l)},error:k.onError.call(l,d,b)},k.ajaxOptions||{}),a.ajax(f)):n({code:d.replace(b.templateRegex,b.template)},d,l);else f=q(b,d),f=a.extend({url:f,dataType:b.dataType||"jsonp",success:function(b){b=a.extend({},b);provider=null;for(var c=0;c<a.fn.oembed.providers.length;c++)if(a.fn.oembed.providers[c].name.toLowerCase()===b.provider_name.toLowerCase()){provider=a.fn.oembed.providers[c];break}null!=provider&&provider.formatter&&(b=provider.formatter(b));
|
10
|
+
switch(b.type){case "file":case "photo":b.code=a.fn.oembed.getPhotoCode(d,b);break;case "link":b.code="Flickr"==b.provider_name?a.fn.oembed.getPhotoCode(d,b):a.fn.oembed.getGenericCode(d,b);break;case "video":case "rich":b.code=a.fn.oembed.getRichCode(d,b);break;default:b.code=a.fn.oembed.getGenericCode(d,b)}n(b,d,l)},error:function(a,c,e){k.onError.call(l,d,b)}},k.ajaxOptions||{}),a.ajax(f)}function r(a){if(null===a)return null;var d,b={};for(d in a)null!==d&&(b[d.toLowerCase()]=a[d]);return b}a.fn.oembed=
|
11
|
+
function(l,d,b){k=a.extend(!0,a.fn.oembed.defaults,d);var m="0rz.tw 1link.in 1url.com 2.gp 2big.at 2tu.us 3.ly 307.to 4ms.me 4sq.com 4url.cc 6url.com 7.ly a.gg a.nf aa.cx abcurl.net ad.vu adf.ly adjix.com afx.cc all.fuseurl.com alturl.com amzn.to ar.gy arst.ch atu.ca azc.cc b23.ru b2l.me bacn.me bcool.bz binged.it bit.ly bizj.us bloat.me bravo.ly bsa.ly budurl.com canurl.com chilp.it chzb.gr cl.lk cl.ly clck.ru cli.gs cliccami.info clickthru.ca clop.in conta.cc cort.as cot.ag crks.me ctvr.us cutt.us dai.ly decenturl.com dfl8.me digbig.com http://digg.com/[^/]+$ disq.us dld.bz dlvr.it do.my doiop.com dopen.us easyuri.com easyurl.net eepurl.com eweri.com fa.by fav.me fb.me fbshare.me ff.im fff.to fire.to firsturl.de firsturl.net flic.kr flq.us fly2.ws fon.gs freak.to fuseurl.com fuzzy.to fwd4.me fwib.net g.ro.lt gizmo.do gl.am go.9nl.com go.ign.com go.usa.gov goo.gl goshrink.com gurl.es hex.io hiderefer.com hmm.ph href.in hsblinks.com htxt.it huff.to hulu.com hurl.me hurl.ws icanhaz.com idek.net ilix.in is.gd its.my ix.lt j.mp jijr.com kl.am klck.me korta.nu krunchd.com l9k.net lat.ms liip.to liltext.com linkbee.com linkbun.ch liurl.cn ln-s.net ln-s.ru lnk.gd lnk.ms lnkd.in lnkurl.com lru.jp lt.tl lurl.no macte.ch mash.to merky.de migre.me miniurl.com minurl.fr mke.me moby.to moourl.com mrte.ch myloc.me myurl.in n.pr nbc.co nblo.gs nn.nf not.my notlong.com nsfw.in nutshellurl.com nxy.in nyti.ms o-x.fr oc1.us om.ly omf.gd omoikane.net on.cnn.com on.mktw.net onforb.es orz.se ow.ly ping.fm pli.gs pnt.me politi.co post.ly pp.gg profile.to ptiturl.com pub.vitrue.com qlnk.net qte.me qu.tc qy.fi r.ebay.com r.im rb6.me read.bi readthis.ca reallytinyurl.com redir.ec redirects.ca redirx.com retwt.me ri.ms rickroll.it riz.gd rt.nu ru.ly rubyurl.com rurl.org rww.tw s4c.in s7y.us safe.mn sameurl.com sdut.us shar.es shink.de shorl.com short.ie short.to shortlinks.co.uk shorturl.com shout.to show.my shrinkify.com shrinkr.com shrt.fr shrt.st shrten.com shrunkin.com simurl.com slate.me smallr.com smsh.me smurl.name sn.im snipr.com snipurl.com snurl.com sp2.ro spedr.com srnk.net srs.li starturl.com stks.co su.pr surl.co.uk surl.hu t.cn t.co t.lh.com ta.gd tbd.ly tcrn.ch tgr.me tgr.ph tighturl.com tiniuri.com tiny.cc tiny.ly tiny.pl tinylink.in tinyuri.ca tinyurl.com tk. tl.gd tmi.me tnij.org tnw.to tny.com to.ly togoto.us totc.us toysr.us tpm.ly tr.im tra.kz trunc.it twhub.com twirl.at twitclicks.com twitterurl.net twitterurl.org twiturl.de twurl.cc twurl.nl u.mavrev.com u.nu u76.org ub0.cc ulu.lu updating.me ur1.ca url.az url.co.uk url.ie url360.me url4.eu urlborg.com urlbrief.com urlcover.com urlcut.com urlenco.de urli.nl urls.im urlshorteningservicefortwitter.com urlx.ie urlzen.com usat.ly use.my vb.ly vevo.ly vgn.am vl.am vm.lc w55.de wapo.st wapurl.co.uk wipi.es wp.me x.vu xr.com xrl.in xrl.us xurl.es xurl.jp y.ahoo.it yatuc.com ye.pe yep.it yfrog.com yhoo.it yiyd.com youtu.be yuarel.com z0p.de zi.ma zi.mu zipmyurl.com zud.me zurl.ws zz.gd zzang.kr ›.ws ✩.ws ✿.ws ❥.ws ➔.ws ➞.ws ➡.ws ➨.ws ➯.ws ➹.ws ➽.ws".split(" ");
|
12
|
+
0===a("#jqoembeddata").length&&a('\x3cspan id\x3d"jqoembeddata"\x3e\x3c/span\x3e').appendTo("body");return this.each(function(){var d=a(this),e=!l||l.indexOf("http://")&&l.indexOf("https://")?d.attr("href"):l,c;b?k.onEmbed=b:k.onEmbed||(k.onEmbed=function(b){a.fn.oembed.insertCode(this,k.embedMethod,b)});if(null!==e&&void 0!==e){if(k.expandUrl)for(var h=0,n=m.length;h<n;h++)if(null!==e.match(new RegExp("://"+m[h]+"/","i")))return h=a.extend({url:"https://unshorten.me/json/"+e,dataType:"json",success:function(b){e=
|
13
|
+
b.resolved_url;c=a.fn.oembed.getOEmbedProvider(b.resolved_url);null!==c?(c.params=r(k[c.name])||{},c.maxWidth=k.maxWidth,c.maxHeight=k.maxHeight,f(d,e,c)):k.onProviderNotFound.call(d,e)}},k.ajaxOptions||{}),a.ajax(h),d;c=a.fn.oembed.getOEmbedProvider(e);!1===k.fallback&&(c="opengraph"===c.name.toLowerCase()?null:c);null!==c?(c.params=r(k[c.name])||{},c.maxWidth=k.maxWidth,c.maxHeight=k.maxHeight,c.title=k.title,f(d,e,c)):k.onProviderNotFound.call(d,e)}return d})};var k;a.fn.oembed.defaults={fallback:!0,
|
14
|
+
maxWidth:null,maxHeight:null,includeHandle:!0,embedMethod:"auto",onProviderNotFound:function(){},beforeEmbed:function(){},afterEmbed:function(){},onEmbed:!1,onError:function(a,d,b,f){console.log("err:",a,d,b,f)},ajaxOptions:{},longUrlAjaxOptions:{},expandUrl:!0,title:null};a.fn.oembed.insertCode=function(l,d,b){if(null!==b)switch("auto"===d&&null!==l.attr("href")?d="append":"auto"==d&&(d="replace"),d){case "replace":l.replaceWith(b.code);break;case "fill":l.html(b.code);break;case "append":l.wrap('\x3cdiv class\x3d"oembedall-container"\x3e\x3c/div\x3e');
|
15
|
+
d=l.parent();k.includeHandle&&a('\x3cspan class\x3d"oembedall-closehide"\x3e\x26darr;\x3c/span\x3e').insertBefore(l).click(function(){var b=encodeURIComponent(a(this).text());a(this).html("%E2%86%91"==b?"\x26darr;":"\x26uarr;");a(this).parent().children().last().toggle()});d.append("\x3cbr/\x3e");try{b.code.clone().appendTo(d)}catch(f){d.append(b.code)}if(k.maxWidth){var g=d.parent().width();g<k.maxWidth?(l=a("iframe",d).width(),b=a("iframe",d).height(),g=l/g,a("iframe",d).width(l/g),a("iframe",d).height(b/
|
16
|
+
g)):(k.maxWidth&&a("iframe",d).width(k.maxWidth),k.maxHeight&&a("iframe",d).height(k.maxHeight))}}};a.fn.oembed.getPhotoCode=function(a,d){var b;b=d.title?d.title:"";b+=d.author_name?" - "+d.author_name:"";b+=d.provider_name?" - "+d.provider_name:"";if(d.url)b='\x3cdiv\x3e\x3ca href\x3d"'+a+"\" target\x3d'_blank'\x3e\x3cimg src\x3d\""+d.url+'" alt\x3d"'+b+'"/\x3e\x3c/a\x3e\x3c/div\x3e';else if(d.thumbnail_url){var f=d.thumbnail_url.replace("_s","_b");b='\x3cdiv\x3e\x3ca href\x3d"'+a+"\" target\x3d'_blank'\x3e\x3cimg src\x3d\""+
|
17
|
+
f+'" alt\x3d"'+b+'"/\x3e\x3c/a\x3e\x3c/div\x3e'}else b="Flickr"==d.provider_name?'\x3cp\x3e\x3ca href\x3d"'+a+"\" target\x3d'_blank'\x3e"+a+"\x3c/a\x3e\x3c/p\x3e":"\x3cdiv\x3eError loading this picture\x3c/div\x3e";return b};a.fn.oembed.getRichCode=function(a,d){if(-1!==d.html.indexOf("\x3ciframe")&&""!==k.title){if(-1===d.html.indexOf("title"))return d.html.replace(/<iframe/,'\x3ciframe title\x3d"'+k.title+'"')}else if(-1!==d.html.indexOf("embed")&&""!==k.title&&-1===d.html.indexOf("title"))return d.html.replace(/<embed/,
|
18
|
+
'\x3cembed aria-label\x3d"'+k.title+'"');return d.html};a.fn.oembed.getGenericCode=function(a,d){var b='\x3ca href\x3d"'+a+'"\x3e'+(d.title&&null!==d.title?d.title:a)+"\x3c/a\x3e";d.html&&(b+="\x3cdiv\x3e"+d.html+"\x3c/div\x3e");return b};a.fn.oembed.getOEmbedProvider=function(l){for(var d=0;d<a.fn.oembed.providers.length;d++)for(var b=0,f=a.fn.oembed.providers[d].urlschemes.length;b<f;b++)if(null!==l.match(new RegExp(a.fn.oembed.providers[d].urlschemes[b],"i")))return a.fn.oembed.providers[d];return null};
|
19
|
+
a.fn.oembed.OEmbedProvider=function(l,d,b,f,g){this.name=l;this.type=d;this.urlschemes=b;this.apiendpoint=f;this.maxWidth=500;this.maxHeight=400;g=g||{};g.useYQL&&(g.yql="xml"==g.useYQL?{xpath:"//oembed/html",from:"xml",apiendpoint:this.apiendpoint,url:function(a){return this.apiendpoint+"?format\x3dxml\x26url\x3d"+a},datareturn:function(a){return a.html.replace(/.*\[CDATA\[(.*)\]\]>$/,"$1")||""}}:{from:"json",apiendpoint:this.apiendpoint,url:function(a){return this.apiendpoint+"?format\x3djson\x26url\x3d"+
|
20
|
+
a},datareturn:function(b){if("video"!=b.json.type&&(b.json.url||b.json.thumbnail_url))return'\x3cimg src\x3d"'+(b.json.url||b.json.thumbnail_url)+'" /\x3e';if(b.json.html.indexOf("iframe")){b.json.html.indexOf("allowfullscreen\x3e")&&(b.json.html=b.json.html.replace("allowfullscreen\x3e",'allowfullscreen\x3d"false"\x3e'));b=a.parseHTML(b.json.html);var l=b[0].width,d=b[0].height;if(k.maxHeight&&k.maxWidth)if(k.useResponsiveResize){var e,f=l,g=d;l>k.maxWidth&&(e=k.maxWidth/l,f=k.maxWidth,g=d*e,d*=
|
21
|
+
e,l*=e);d>k.maxHeight&&(e=k.maxHeight/d,g=k.maxHeight,f=l*e);d=g;l=f}else d=k.maxHeight,l=k.maxWidth;b[0].width=l;b[0].height=d;return b[0].outerHTML}return b.json.html||""}},this.apiendpoint=null);for(var e in g)this[e]=g[e];this.format=this.format||"json";this.callbackparameter=this.callbackparameter||"callback";this.embedtag=this.embedtag||{tag:""}};a.fn.updateOEmbedProvider=function(l,d,b,f,g){for(var e=0;e<a.fn.oembed.providers.length;e++)if(a.fn.oembed.providers[e].name===l&&(null!==d&&(a.fn.oembed.providers[e].type=
|
22
|
+
d),null!==b&&(a.fn.oembed.providers[e].urlschemes=b),null!==f&&(a.fn.oembed.providers[e].apiendpoint=f),null!==g)){a.fn.oembed.providers[e].extraSettings=g;for(var c in g)null!==c&&null!==g[c]&&(a.fn.oembed.providers[e][c]=g[c])}};a.fn.oembed.providers=[new a.fn.oembed.OEmbedProvider("youtube","video",["youtube\\.com/watch.+v\x3d[\\w-]+\x26?","youtu\\.be/[\\w-]+","youtube.com/embed"],m()+"www.youtube.com/embed/$1?wmode\x3dtransparent",{templateRegex:/.*(?:v\=|be\/|embed\/)([\w-]+)(?:[?&]t=(\w*))?/,
|
23
|
+
embedtag:{tag:"iframe",width:"425",height:"349"}}),new a.fn.oembed.OEmbedProvider("wistia","video",["wistia.com/medias/.+","wistia.com/m/.+","wistia.com/embed/.+","wi.st/m/.+","wi.st/embed/.+"],"http://fast.wistia.com/oembed",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("xtranormal","video",["xtranormal\\.com/watch/.+"],"http://www.xtranormal.com/xtraplayr/$1/$2",{templateRegex:/.*com\/watch\/([\w\-]+)\/([\w\-]+).*/,embedtag:{tag:"iframe",width:"320",height:"269"}}),new a.fn.oembed.OEmbedProvider("scivee",
|
24
|
+
"video",["scivee.tv/node/.+"],"http://www.scivee.tv/flash/embedCast.swf?",{templateRegex:/.*tv\/node\/(.+)/,embedtag:{width:"480",height:"400",flashvars:"id\x3d$1\x26type\x3d3"}}),new a.fn.oembed.OEmbedProvider("veoh","video",["veoh.com/watch/.+"],"http://www.veoh.com/swf/webplayer/WebPlayer.swf?version\x3dAFrontend.5.7.0.1337\x26permalinkId\x3d$1\x26player\x3dvideodetailsembedded\x26videoAutoPlay\x3d0\x26id\x3danonymous",{templateRegex:/.*watch\/([^\?]+).*/,embedtag:{width:"410",height:"341"}}),
|
25
|
+
new a.fn.oembed.OEmbedProvider("gametrailers","video",["gametrailers\\.com/video/.+"],"http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:$2",{templateRegex:/.*com\/video\/([\w\-]+)\/([\w\-]+).*/,embedtag:{width:"512",height:"288"}}),new a.fn.oembed.OEmbedProvider("funnyordie","video",["funnyordie\\.com/videos/.+"],"http://player.ordienetworks.com/flash/fodplayer.swf?",{templateRegex:/.*videos\/([^\/]+)\/([^\/]+)?/,embedtag:{width:512,height:328,flashvars:"key\x3d$1"}}),new a.fn.oembed.OEmbedProvider("colledgehumour",
|
26
|
+
"video",["collegehumor\\.com/video/.+"],"http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id\x3d$1\x26use_node_id\x3dtrue\x26fullscreen\x3d1",{templateRegex:/.*video\/([^\/]+).*/,embedtag:{width:600,height:338}}),new a.fn.oembed.OEmbedProvider("metacafe","video",["metacafe\\.com/watch/.+"],"http://www.metacafe.com/fplayer/$1/$2.swf",{templateRegex:/.*watch\/(\d+)\/(\w+)\/.*/,embedtag:{width:400,height:345}}),new a.fn.oembed.OEmbedProvider("bambuser","video",["bambuser\\.com/channel/.*/broadcast/.*"],
|
27
|
+
"http://static.bambuser.com/r/player.swf?vid\x3d$1",{templateRegex:/.*bambuser\.com\/channel\/.*\/broadcast\/(\w+).*/,embedtag:{width:512,height:339}}),new a.fn.oembed.OEmbedProvider("twitvid","video",["twitvid\\.com/.+"],"http://www.twitvid.com/embed.php?guid\x3d$1\x26autoplay\x3d0",{templateRegex:/.*twitvid\.com\/(\w+).*/,embedtag:{tag:"iframe",width:480,height:360}}),new a.fn.oembed.OEmbedProvider("aniboom","video",["aniboom\\.com/animation-video/.+"],"http://api.aniboom.com/e/$1",{templateRegex:/.*animation-video\/(\d+).*/,
|
28
|
+
embedtag:{width:594,height:334}}),new a.fn.oembed.OEmbedProvider("vzaar","video",["vzaar\\.com/videos/.+","vzaar.tv/.+"],"http://view.vzaar.com/$1/player?",{templateRegex:/.*\/(\d+).*/,embedtag:{tag:"iframe",width:576,height:324}}),new a.fn.oembed.OEmbedProvider("snotr","video",["snotr\\.com/video/.+"],"http://www.snotr.com/embed/$1",{templateRegex:/.*\/(\d+).*/,embedtag:{tag:"iframe",width:400,height:330},nocache:1}),new a.fn.oembed.OEmbedProvider("youku","video",["v.youku.com/v_show/id_.+"],"http://player.youku.com/player.php/sid/$1/v.swf",
|
29
|
+
{templateRegex:/.*id_(.+)\.html.*/,embedtag:{width:480,height:400},nocache:1}),new a.fn.oembed.OEmbedProvider("tudou","video",["tudou.com/programs/view/.+/"],"http://www.tudou.com/v/$1/v.swf",{templateRegex:/.*view\/(.+)\//,embedtag:{width:480,height:400},nocache:1}),new a.fn.oembed.OEmbedProvider("embedr","video",["embedr\\.com/playlist/.+"],"http://embedr.com/swf/slider/$1/425/520/default/false/std?",{templateRegex:/.*playlist\/([^\/]+).*/,embedtag:{width:425,height:520}}),new a.fn.oembed.OEmbedProvider("blip",
|
30
|
+
"video",["blip\\.tv/.+"],m()+"blip.tv/oembed/"),new a.fn.oembed.OEmbedProvider("minoto-video","video",["http://api.minoto-video.com/publishers/.+/videos/.+","http://dashboard.minoto-video.com/main/video/details/.+","http://embed.minoto-video.com/.+"],"http://api.minoto-video.com/services/oembed.json",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("animoto","video",["animoto.com/play/.+"],"http://animoto.com/services/oembed"),new a.fn.oembed.OEmbedProvider("hulu","video",["hulu\\.com/watch/.*"],m()+
|
31
|
+
"www.hulu.com/api/oembed.json"),new a.fn.oembed.OEmbedProvider("ustream","video",["ustream\\.tv/recorded/.*"],"http://www.ustream.tv/oembed",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("videojug","video",["videojug\\.com/(film|payer|interview).*"],"http://www.videojug.com/oembed.json",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("sapo","video",["videos\\.sapo\\.pt/.*"],"http://videos.sapo.pt/oembed",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("vodpod","video",["vodpod.com/watch/.*"],"http://vodpod.com/oembed.js",
|
32
|
+
{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("vimeo","video",["www.vimeo.com/groups/.*/videos/.*","www.vimeo.com/.*","vimeo.com/groups/.*/videos/.*","vimeo.com/.*"],m()+"vimeo.com/api/oembed.json"),new a.fn.oembed.OEmbedProvider("dailymotion","video",["dailymotion\\.com/.+"],m()+"www.dailymotion.com/services/oembed"),new a.fn.oembed.OEmbedProvider("5min","video",["www\\.5min\\.com/.+"],"http://api.5min.com/oembed.xml",{useYQL:"xml"}),new a.fn.oembed.OEmbedProvider("National Film Board of Canada",
|
33
|
+
"video",["nfb\\.ca/film/.+"],"http://www.nfb.ca/remote/services/oembed/",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("qik","video",["qik\\.com/\\w+"],"http://qik.com/api/oembed.json",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("revision3","video",["revision3\\.com"],"http://revision3.com/api/oembed/"),new a.fn.oembed.OEmbedProvider("dotsub","video",["dotsub\\.com/view/.+"],"http://dotsub.com/services/oembed",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("clikthrough","video",["clikthrough\\.com/theater/video/\\d+"],
|
34
|
+
"http://clikthrough.com/services/oembed"),new a.fn.oembed.OEmbedProvider("Kinomap","video",["kinomap\\.com/.+"],"http://www.kinomap.com/oembed"),new a.fn.oembed.OEmbedProvider("VHX","video",["vhx.tv/.+"],"http://vhx.tv/services/oembed.json"),new a.fn.oembed.OEmbedProvider("bambuser","video",["bambuser.com/.+"],"http://api.bambuser.com/oembed/iframe.json"),new a.fn.oembed.OEmbedProvider("justin.tv","video",["justin.tv/.+"],"http://api.justin.tv/api/embed/from_url.json",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("vine",
|
35
|
+
"video",["vine.co/v/.*"],null,{templateRegex:/https?:\/\/w?w?w?.?vine\.co\/v\/([a-zA-Z0-9]*).*/,template:'\x3ciframe src\x3d"https://vine.co/v/$1/embed/postcard" width\x3d"600" height\x3d"600" allowfullscreen\x3d"true" allowscriptaccess\x3d"always" scrolling\x3d"no" frameborder\x3d"0"\x3e\x3c/iframe\x3e\x3cscript async src\x3d"//platform.vine.co/static/scripts/embed.js" charset\x3d"utf-8"\x3e\x3c/script\x3e',nocache:1}),new a.fn.oembed.OEmbedProvider("boxofficebuz","video",["boxofficebuz\\.com\\/embed/.+"],
|
36
|
+
"http://boxofficebuz.com/embed/$1/$2",{templateRegex:[/.*boxofficebuz\.com\/embed\/(\w+)\/([\w*\-*]+)/],embedtag:{tag:"iframe",width:480,height:360}}),new a.fn.oembed.OEmbedProvider("clipsyndicate","video",["clipsyndicate\\.com/video/play/.+","clipsyndicate\\.com/embed/iframe?.+"],"http://eplayer.clipsyndicate.com/embed/iframe?pf_id\x3d1\x26show_title\x3d0\x26va_id\x3d$1\x26windows\x3d1",{templateRegex:[/.*www\.clipsyndicate\.com\/video\/play\/(\w+)\/.*/,/.*eplayer\.clipsyndicate\.com\/embed\/iframe\?.*va_id=(\w+).*.*/],
|
37
|
+
embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("coub","video",["coub\\.com/.+"],"http://www.coub.com/embed/$1?muted\x3dfalse\x26autostart\x3dfalse\x26originalSize\x3dfalse\x26hideTopBar\x3dfalse\x26noSiteButtons\x3dfalse\x26startWithHD\x3dfalse",{templateRegex:[/.*coub\.com\/embed\/(\w+)\?*.*/,/.*coub\.com\/view\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("discoverychannel","video",["snagplayer\\.video\\.dp\\.discovery\\.com/.+"],
|
38
|
+
"http://snagplayer.video.dp.discovery.com/$1/snag-it-player.htm?auto\x3dno",{templateRegex:[/.*snagplayer\.video\.dp\.discovery\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360}}),new a.fn.oembed.OEmbedProvider("telly","video",["telly\\.com/.+"],"http://www.telly.com/embed.php?guid\x3d$1\x26autoplay\x3d0",{templateRegex:[/.*telly\.com\/embed\.php\?guid=(\w+).*/,/.*telly\.com\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360}}),new a.fn.oembed.OEmbedProvider("minilogs","video",["minilogs\\.com/.+"],
|
39
|
+
"http://www.minilogs.com/e/$1",{templateRegex:[/.*minilogs\.com\/e\/(\w+).*/,/.*minilogs\.com\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("viddy","video",["viddy\\.com/.+"],"http://www.viddy.com/embed/video/$1",{templateRegex:[/.*viddy\.com\/embed\/video\/(\.*)/,/.*viddy\.com\/video\/(\.*)/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("worldstarhiphop","video",["worldstarhiphop\\.com/embed/.+"],"http://www.worldstarhiphop.com/embed/$1",
|
40
|
+
{templateRegex:/.*worldstarhiphop\.com\/embed\/(\w+).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("zapiks","video",["zapiks\\.fr/.+"],"http://www.zapiks.fr/index.php?action\x3dplayerIframe\x26media_id\x3d$1\x26autoStart\x3dfals",{templateRegex:/.*zapiks\.fr\/index.php\?[\w\=\&]*media_id=(\w+).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("official.fm","rich",["official.fm/.+"],"http://official.fm/services/oembed",
|
41
|
+
{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("chirbit","rich",["chirb.it/.+"],"http://chirb.it/oembed.json",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("chirbit","audio",["chirb\\.it/.+"],"http://chirb.it/wp/$1",{templateRegex:[/.*chirb\.it\/wp\/(\w+).*/,/.*chirb\.it\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("Huffduffer","rich",["huffduffer.com/[-.\\w@]+/\\d+"],"http://huffduffer.com/oembed"),new a.fn.oembed.OEmbedProvider("Spotify",
|
42
|
+
"rich",["open.spotify.com/(track|album|user)/"],"https://embed.spotify.com/oembed/"),new a.fn.oembed.OEmbedProvider("shoudio","rich",["shoudio.com/.+","shoud.io/.+"],"http://shoudio.com/api/oembed"),new a.fn.oembed.OEmbedProvider("mixcloud","rich",["mixcloud.com/.+"],m()+"www.mixcloud.com/oembed/",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("rdio.com","rich",["rd.io/.+","rdio.com"],m()+"rdio.com/api/oembed/"),new a.fn.oembed.OEmbedProvider("Soundcloud","rich",["soundcloud.com/.+","snd.sc/.+"],
|
43
|
+
m()+"soundcloud.com/oembed",{format:"js",width:250,height:250,formatter:function(a){var d=a.html.replace(/visual=true/,"visual\x3dfalse\x26hide_related\x3dfalse\x26show_comments\x3dfalse\x26show_user\x3dfalse\x26show_reposts\x3dfalse\x26show_teaser\x3dfalse\x26"),d=d.replace(/show_artwork=true/,"show_artwork\x3dfalse");a.html=d;return a}}),new a.fn.oembed.OEmbedProvider("bandcamp","rich",["bandcamp\\.com/album/.+"],null,{yql:{xpath:"//meta[contains(@content, \\'EmbeddedPlayer\\')]",from:"html",datareturn:function(a){return a.meta?
|
44
|
+
'\x3ciframe width\x3d"400" height\x3d"100" src\x3d"'+a.meta.content+'" allowtransparency\x3d"true" frameborder\x3d"0"\x3e\x3c/iframe\x3e':!1}}}),new a.fn.oembed.OEmbedProvider("deviantart","photo",["deviantart.com/.+","fav.me/.+","deviantart.com/.+"],m()+"backend.deviantart.com/oembed",{format:"jsonp"}),new a.fn.oembed.OEmbedProvider("skitch","photo",["skitch.com/.+"],null,{yql:{xpath:"json",from:"json",url:function(a){return"http://skitch.com/oembed/?format\x3djson\x26url\x3d"+a},datareturn:function(l){return a.fn.oembed.getPhotoCode(l.json.url,
|
45
|
+
l.json)}}}),new a.fn.oembed.OEmbedProvider("mobypicture","photo",["mobypicture.com/user/.+/view/.+","moby.to/.+"],"http://api.mobypicture.com/oEmbed"),new a.fn.oembed.OEmbedProvider("flickr","photo",["flickr\\.com/photos/.+"],m()+"flickr.com/services/oembed",{callbackparameter:"jsoncallback"}),new a.fn.oembed.OEmbedProvider("photobucket","photo",["photobucket\\.com/(albums|groups)/.+"],m()+"photobucket.com/oembed/"),new a.fn.oembed.OEmbedProvider("instagram","photo",["instagr\\.?am(\\.com)?/.+"],
|
46
|
+
m()+"api.instagram.com/oembed",{dataType:"json"}),new a.fn.oembed.OEmbedProvider("SmugMug","photo",["smugmug.com/[-.\\w@]+/.+"],"http://api.smugmug.com/services/oembed/"),new a.fn.oembed.OEmbedProvider("dribbble","photo",["dribbble.com/shots/.+"],"http://api.dribbble.com/shots/$1?callback\x3d?",{templateRegex:/.*shots\/([\d]+).*/,templateData:function(a){return a.image_teaser_url?'\x3cimg src\x3d"'+a.image_teaser_url+'"/\x3e':!1}}),new a.fn.oembed.OEmbedProvider("chart.ly","photo",["chart\\.ly/[a-z0-9]{6,8}"],
|
47
|
+
"http://chart.ly/uploads/large_$1.png",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new a.fn.oembed.OEmbedProvider("circuitlab","photo",["circuitlab.com/circuit/.+"],"https://www.circuitlab.com/circuit/$1/screenshot/540x405/",{templateRegex:/.*circuit\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new a.fn.oembed.OEmbedProvider("23hq","photo",["23hq.com/[-.\\w@]+/photo/.+"],"http://www.23hq.com/23/oembed",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("img.ly","photo",["img\\.ly/.+"],
|
48
|
+
"//img.ly/show/thumb/$1",{templateRegex:/.*ly\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new a.fn.oembed.OEmbedProvider("twitgoo.com","photo",["twitgoo\\.com/.+"],"http://twitgoo.com/show/thumb/$1",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new a.fn.oembed.OEmbedProvider("imgur.com","photo",["imgur\\.com/gallery/.+"],m()+"imgur.com/$1l.jpg",{templateRegex:/.*gallery\/([^\/]+).*/,embedtag:{tag:"img"},nocache:1}),new a.fn.oembed.OEmbedProvider("visual.ly","rich",["visual\\.ly/.+"],
|
49
|
+
null,{yql:{xpath:"//a[@id\x3d\\'gc_article_graphic_image\\']/img",from:"htmlstring"}}),new a.fn.oembed.OEmbedProvider("achewood","photo",["achewood\\.com\\/index.php\\?date\x3d.+"],"http://www.achewood.com/comic.php?date\x3d$1",{templateRegex:/.*achewood\.com\/index.php\?date=(\w+).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("fotokritik","photo",["fotokritik\\.com/.+"],"http://www.fotokritik.com/embed/$1",{templateRegex:[/.*fotokritik\.com\/embed\/(\w+).*/,
|
50
|
+
/.*fotokritik\.com\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("giflike","photo",["giflike\\.com/.+"],"http://www.giflike.com/embed/$1",{templateRegex:[/.*giflike\.com\/embed\/(\w+).*/,/.*giflike\.com\/a\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("twitter","rich",["twitter.com/.+"],"https://api.twitter.com/1/statuses/oembed.json?id\x3d"),new a.fn.oembed.OEmbedProvider("gmep","rich",["gmep.imeducate.com/.*",
|
51
|
+
"gmep.org/.*"],"http://gmep.org/oembed.json"),new a.fn.oembed.OEmbedProvider("urtak","rich",["urtak.com/(u|clr)/.+"],"http://oembed.urtak.com/1/oembed"),new a.fn.oembed.OEmbedProvider("cacoo","rich",["cacoo.com/.+"],"http://cacoo.com/oembed.json"),new a.fn.oembed.OEmbedProvider("dailymile","rich",["dailymile.com/people/.*/entries/.*"],"http://api.dailymile.com/oembed"),new a.fn.oembed.OEmbedProvider("documentcloud","rich",["documentcloud.org/documents/.+"],"https://www.documentcloud.org/api/oembed.json"),
|
52
|
+
new a.fn.oembed.OEmbedProvider("dipity","rich",["dipity.com/timeline/.+"],"http://www.dipity.com/oembed/timeline/",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("sketchfab","rich",["sketchfab.com/show/.+"],"http://sketchfab.com/oembed",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("speakerdeck","rich",["speakerdeck.com/.+"],"http://speakerdeck.com/oembed.json",{useYQL:"json"}),new a.fn.oembed.OEmbedProvider("popplet","rich",["popplet.com/app/.*"],"http://popplet.com/app/Popplet_Alpha.swf?page_id\x3d$1\x26em\x3d1",
|
53
|
+
{templateRegex:/.*#\/([^\/]+).*/,embedtag:{width:460,height:460}}),new a.fn.oembed.OEmbedProvider("pearltrees","rich",["pearltrees.com/.*"],"http://cdn.pearltrees.com/s/embed/getApp?",{templateRegex:/.*N-f=1_(\d+).*N-p=(\d+).*/,embedtag:{width:460,height:460,flashvars:"lang\x3den_US\x26amp;embedId\x3dpt-embed-$1-693\x26amp;treeId\x3d$1\x26amp;pearlId\x3d$2\x26amp;treeTitle\x3dDiagrams%2FVisualization\x26amp;site\x3dwww.pearltrees.com%2FF"}}),new a.fn.oembed.OEmbedProvider("prezi","rich",["prezi.com/.*"],
|
54
|
+
m()+"prezi.com/bin/preziloader.swf?",{templateRegex:/.*com\/([^\/]+)\/.*/,embedtag:{width:550,height:400,flashvars:"prezi_id\x3d$1\x26amp;lock_to_path\x3d0\x26amp;color\x3dffffff\x26amp;autoplay\x3dno\x26amp;autohide_ctrls\x3d0"}}),new a.fn.oembed.OEmbedProvider("tourwrist","rich",["tourwrist.com/tours/.+"],null,{templateRegex:/.*tours.([\d]+).*/,template:function(a,d){setTimeout(function(){loadEmbeds&&loadEmbeds()},2E3);return"\x3cdiv id\x3d'"+d+"' class\x3d'tourwrist-tour-embed direct'\x3e\x3c/div\x3e \x3cscript type\x3d'text/javascript' src\x3d'http://tourwrist.com/tour_embed.js'\x3e\x3c/script\x3e"}}),
|
55
|
+
new a.fn.oembed.OEmbedProvider("meetup","rich",["meetup\\.(com|ps)/.+"],m()+"api.meetup.com/oembed"),new a.fn.oembed.OEmbedProvider("ebay","rich",["ebay\\.*"],m()+"togo.ebay.com/togo/togo.swf?2008013100",{templateRegex:/.*\/([^\/]+)\/(\d{10,13}).*/,embedtag:{width:355,height:300,flashvars:"base\x3dhttp://togo.ebay.com/togo/\x26lang\x3den-us\x26mode\x3dnormal\x26itemid\x3d$2\x26query\x3d$1"}}),new a.fn.oembed.OEmbedProvider("wikipedia","rich",["wikipedia.org/wiki/.+"],"http://$1.wikipedia.org/w/api.php?action\x3dparse\x26page\x3d$2\x26format\x3djson\x26section\x3d0\x26callback\x3d?",
|
56
|
+
{templateRegex:/.*\/\/([\w]+).*\/wiki\/([^\/]+).*/,templateData:function(a){if(!a.parse)return!1;var d=a.parse.text["*"].replace(/href="\/wiki/g,'href\x3d"http://en.wikipedia.org/wiki');return'\x3cdiv id\x3d"content"\x3e\x3ch3\x3e\x3ca class\x3d"nav-link" href\x3d"http://en.wikipedia.org/wiki/'+a.parse.displaytitle+'"\x3e'+a.parse.displaytitle+"\x3c/a\x3e\x3c/h3\x3e"+d+"\x3c/div\x3e"}}),new a.fn.oembed.OEmbedProvider("imdb","rich",["imdb.com/title/.+"],"http://www.imdbapi.com/?i\x3d$1\x26callback\x3d?",
|
57
|
+
{templateRegex:/.*\/title\/([^\/]+).*/,templateData:function(a){return a.Title?'\x3cdiv id\x3d"content"\x3e\x3ch3\x3e\x3ca class\x3d"nav-link" href\x3d"http://imdb.com/title/'+a.imdbID+'/"\x3e'+a.Title+"\x3c/a\x3e ("+a.Year+")\x3c/h3\x3e\x3cp\x3eRating: "+a.imdbRating+"\x3cbr/\x3eGenre: "+a.Genre+"\x3cbr/\x3eStarring: "+a.Actors+'\x3c/p\x3e\x3c/div\x3e \x3cdiv id\x3d"view-photo-caption"\x3e'+a.Plot+"\x3c/div\x3e\x3c/div\x3e":!1}}),new a.fn.oembed.OEmbedProvider("livejournal","rich",["livejournal.com/"],
|
58
|
+
"http://ljpic.seacrow.com/json/$2$4?jsonp\x3d?",{templateRegex:/(http:\/\/(((?!users).)+)\.livejournal\.com|.*users\.livejournal\.com\/([^\/]+)).*/,templateData:function(a){return a.username?'\x3cdiv\x3e\x3cimg src\x3d"'+a.image+'" align\x3d"left" style\x3d"margin-right: 1em;" /\x3e\x3cspan class\x3d"oembedall-ljuser"\x3e\x3ca href\x3d"http://'+a.username+'.livejournal.com/profile"\x3e\x3cimg src\x3d"http://www.livejournal.com/img/userinfo.gif" alt\x3d"[info]" width\x3d"17" height\x3d"17" /\x3e\x3c/a\x3e\x3ca href\x3d"http://'+
|
59
|
+
a.username+'.livejournal.com/"\x3e'+a.username+"\x3c/a\x3e\x3c/span\x3e\x3cbr /\x3e"+a.name+"\x3c/div\x3e":!1}}),new a.fn.oembed.OEmbedProvider("circuitbee","rich",["circuitbee\\.com/circuit/view/.+"],"http://c.circuitbee.com/build/r/schematic-embed.html?id\x3d$1",{templateRegex:/.*circuit\/view\/(\d+).*/,embedtag:{tag:"iframe",width:"500",height:"350"}}),new a.fn.oembed.OEmbedProvider("googlecalendar","rich",["www.google.com/calendar/embed?.+"],"$1",{templateRegex:/(.*)/,embedtag:{tag:"iframe",width:"800",
|
60
|
+
height:"600"}}),new a.fn.oembed.OEmbedProvider("jsfiddle","rich",["jsfiddle.net/[^/]+/?"],"http://jsfiddle.net/$1/embedded/result,js,resources,html,css/?",{templateRegex:/.*net\/([^\/]+).*/,embedtag:{tag:"iframe",width:"100%",height:"300"}}),new a.fn.oembed.OEmbedProvider("jsbin","rich",["jsbin.com/.+"],"http://jsbin.com/$1/?",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:"iframe",width:"100%",height:"300"}}),new a.fn.oembed.OEmbedProvider("jotform","rich",["form.jotform.co/form/.+"],"$1?",{templateRegex:/(.*)/,
|
61
|
+
embedtag:{tag:"iframe",width:"100%",height:"507"}}),new a.fn.oembed.OEmbedProvider("reelapp","rich",["reelapp\\.com/.+"],"http://www.reelapp.com/$1/embed",{templateRegex:/.*com\/(\S{6}).*/,embedtag:{tag:"iframe",width:"400",height:"338"}}),new a.fn.oembed.OEmbedProvider("linkedin","rich",["linkedin.com/pub/.+"],"https://www.linkedin.com/cws/member/public_profile?public_profile_url\x3d$1\x26format\x3dinline\x26isFramed\x3dtrue",{templateRegex:/(.*)/,embedtag:{tag:"iframe",width:"368px",height:"auto"}}),
|
62
|
+
new a.fn.oembed.OEmbedProvider("timetoast","rich",["timetoast.com/timelines/[0-9]+"],"http://www.timetoast.com/flash/TimelineViewer.swf?passedTimelines\x3d$1",{templateRegex:/.*timelines\/([0-9]*)/,embedtag:{width:550,height:400},nocache:1}),new a.fn.oembed.OEmbedProvider("pastebin","rich",["pastebin\\.com/[\\S]{8}"],"http://pastebin.com/embed_iframe.php?i\x3d$1",{templateRegex:/.*\/(\S{8}).*/,embedtag:{tag:"iframe",width:"100%",height:"auto"}}),new a.fn.oembed.OEmbedProvider("mixlr","rich",["mixlr.com/.+"],
|
63
|
+
"http://mixlr.com/embed/$1?autoplay\x3dae",{templateRegex:/.*com\/([^\/]+).*/,embedtag:{tag:"iframe",width:"100%",height:"auto"}}),new a.fn.oembed.OEmbedProvider("pastie","rich",["pastie\\.org/pastes/.+"],null,{yql:{xpath:'//pre[@class\x3d"textmate-source"]'}}),new a.fn.oembed.OEmbedProvider("github","rich",["gist.github.com/.+"],"https://github.com/api/oembed"),new a.fn.oembed.OEmbedProvider("github","rich",["github.com/[-.\\w@]+/[-.\\w@]+"],"https://api.github.com/repos/$1/$2?callback\x3d?",{templateRegex:/.*\/([^\/]+)\/([^\/]+).*/,
|
64
|
+
templateData:function(a){return a.data.html_url?'\x3cdiv class\x3d"oembedall-githubrepos"\x3e\x3cul class\x3d"oembedall-repo-stats"\x3e\x3cli\x3e'+a.data.language+'\x3c/li\x3e\x3cli class\x3d"oembedall-watchers"\x3e\x3ca title\x3d"Watchers" href\x3d"'+a.data.html_url+'/watchers"\x3e\x26#x25c9; '+a.data.watchers+'\x3c/a\x3e\x3c/li\x3e\x3cli class\x3d"oembedall-forks"\x3e\x3ca title\x3d"Forks" href\x3d"'+a.data.html_url+'/network"\x3e\x26#x0265; '+a.data.forks+'\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e\x3ch3\x3e\x3ca href\x3d"'+
|
65
|
+
a.data.html_url+'"\x3e'+a.data.name+'\x3c/a\x3e\x3c/h3\x3e\x3cdiv class\x3d"oembedall-body"\x3e\x3cp class\x3d"oembedall-description"\x3e'+a.data.description+'\x3c/p\x3e\x3cp class\x3d"oembedall-updated-at"\x3eLast updated: '+a.data.pushed_at+"\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e":!1}}),new a.fn.oembed.OEmbedProvider("facebook","rich",["facebook.com"],null,{templateRegex:/.*\/([^\/]+)\/([^\/]+).*/,template:function(l){if(!a.fn.oembed.facebokScriptHasBeenAdded){a('\x3cdiv id\x3d"fb-root"\x3e\x3c/div\x3e').appendTo("body");
|
66
|
+
var d=document.createElement("script");d.type="text/javascript";d.text='(function(d, s, id) {var js, fjs \x3d d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js \x3d d.createElement(s); js.id \x3d id;js.src \x3d "//connect.facebook.net/en_US/sdk.js#xfbml\x3d1\x26version\x3dv2.0";fjs.parentNode.insertBefore(js, fjs);}(document, "script", "facebook-jssdk"));';document.body.appendChild(d);a.fn.oembed.facebokScriptHasBeenAdded=!0}return'\x3cdiv class\x3d"fb-post" data-href\x3d"'+l+'" data-width\x3d"520"\x3e\x3cdiv class\x3d"fb-xfbml-parse-ignore"\x3e\x3ca href\x3d"'+
|
67
|
+
l+'"\x3e\x3c/div\x3e\x3c/div\x3e'}}),new a.fn.oembed.OEmbedProvider("stackoverflow","rich",["stackoverflow.com/questions/[\\d]+"],"http://api.stackoverflow.com/1.1/questions/$1?body\x3dtrue\x26jsonp\x3d?",{templateRegex:/.*questions\/([\d]+).*/,templateData:function(l){if(!l.questions)return!1;l=l.questions[0];var d=a(l.body).text(),d='\x3cdiv class\x3d"oembedall-stoqembed"\x3e\x3cdiv class\x3d"oembedall-statscontainer"\x3e\x3cdiv class\x3d"oembedall-statsarrow"\x3e\x3c/div\x3e\x3cdiv class\x3d"oembedall-stats"\x3e\x3cdiv class\x3d"oembedall-vote"\x3e\x3cdiv class\x3d"oembedall-votes"\x3e\x3cspan class\x3d"oembedall-vote-count-post"\x3e\x3cstrong\x3e'+
|
68
|
+
(l.up_vote_count-l.down_vote_count)+'\x3c/strong\x3e\x3c/span\x3e\x3cdiv class\x3d"oembedall-viewcount"\x3evote(s)\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"oembedall-status"\x3e\x3cstrong\x3e'+l.answer_count+'\x3c/strong\x3eanswer\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"oembedall-views"\x3e'+l.view_count+' view(s)\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"oembedall-summary"\x3e\x3ch3\x3e\x3ca class\x3d"oembedall-question-hyperlink" href\x3d"http://stackoverflow.com/questions/'+l.question_id+
|
69
|
+
'/"\x3e'+l.title+'\x3c/a\x3e\x3c/h3\x3e\x3cdiv class\x3d"oembedall-excerpt"\x3e'+d.substring(0,100)+'...\x3c/div\x3e\x3cdiv class\x3d"oembedall-tags"\x3e';for(i in l.tags)d+='\x3ca title\x3d"" class\x3d"oembedall-post-tag" href\x3d"http://stackoverflow.com/questions/tagged/'+l.tags[i]+'"\x3e'+l.tags[i]+"\x3c/a\x3e";return d+='\x3c/div\x3e\x3cdiv class\x3d"oembedall-fr"\x3e\x3cdiv class\x3d"oembedall-user-info"\x3e\x3cdiv class\x3d"oembedall-user-gravatar32"\x3e\x3ca href\x3d"http://stackoverflow.com/users/'+
|
70
|
+
l.owner.user_id+"/"+l.owner.display_name+'"\x3e\x3cimg width\x3d"32" height\x3d"32" alt\x3d"" src\x3d"http://www.gravatar.com/avatar/'+l.owner.email_hash+'?s\x3d32\x26amp;d\x3didenticon\x26amp;r\x3dPG"\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d"oembedall-user-details"\x3e\x3ca href\x3d"http://stackoverflow.com/users/'+l.owner.user_id+"/"+l.owner.display_name+'"\x3e'+l.owner.display_name+'\x3c/a\x3e\x3cbr\x3e\x3cspan title\x3d"reputation score" class\x3d"oembedall-reputation-score"\x3e'+l.owner.reputation+
|
71
|
+
"\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e"}}),new a.fn.oembed.OEmbedProvider("wordpress","rich",["wordpress\\.com/.+","blogs\\.cnn\\.com/.+","techcrunch\\.com/.+","wp\\.me/.+"],"http://public-api.wordpress.com/oembed/1.0/?for\x3djquery-oembed-all"),new a.fn.oembed.OEmbedProvider("screenr","rich",["screenr.com"],"http://www.screenr.com/embed/$1",{templateRegex:/.*\/([^\/]+).*/,embedtag:{tag:"iframe",width:"650",height:396}}),new a.fn.oembed.OEmbedProvider("gigpans",
|
72
|
+
"rich",["gigapan\\.org/[-.\\w@]+/\\d+"],"http://gigapan.org/gigapans/$1/options/nosnapshots/iframe/flash.html",{templateRegex:/.*\/(\d+)\/?.*/,embedtag:{tag:"iframe",width:"100%",height:400}}),new a.fn.oembed.OEmbedProvider("scribd","rich",["scribd\\.com/.+"],m()+"www.scribd.com/embeds/$1/content?start_page\x3d1\x26view_mode\x3dlist",{templateRegex:/.*doc\/([^\/]+).*/,embedtag:{tag:"iframe",width:"100%",height:600}}),new a.fn.oembed.OEmbedProvider("kickstarter","rich",["kickstarter\\.com/projects/.+"],
|
73
|
+
"$1/widget/card.html",{templateRegex:/([^\?]+).*/,embedtag:{tag:"iframe",width:"220",height:380}}),new a.fn.oembed.OEmbedProvider("amazon","rich",["amzn.com/B+","amazon.com.*/(B\\S+)($|\\/.*)"],m()+"rcm.amazon.com/e/cm?t\x3d_APIKEY_\x26o\x3d1\x26p\x3d8\x26l\x3das1\x26asins\x3d$1\x26ref\x3dqf_br_asin_til\x26fc1\x3d000000\x26IS2\x3d1\x26lt1\x3d_blank\x26m\x3damazon\x26lc1\x3d0000FF\x26bc1\x3d000000\x26bg1\x3dFFFFFF\x26f\x3difr",{apikey:!0,templateRegex:/.*\/(B[0-9A-Z]+)($|\/.*)/,embedtag:{tag:"iframe",
|
74
|
+
width:"120px",height:"240px"}}),new a.fn.oembed.OEmbedProvider("slideshare","rich",["slideshare.net"],m()+"www.slideshare.net/api/oembed/2",{format:"jsonp"}),new a.fn.oembed.OEmbedProvider("roomsharejp","rich",["roomshare\\.jp/(en/)?post/.*"],"http://roomshare.jp/oembed.json"),new a.fn.oembed.OEmbedProvider("lanyard","rich",["lanyrd.com/\\d+/.+"],null,{yql:{xpath:'(//div[@class\x3d"primary"])[1]',from:"htmlstring",datareturn:function(a){return a.result?'\x3cdiv class\x3d"oembedall-lanyard"\x3e'+a.result+
|
75
|
+
"\x3c/div\x3e":!1}}}),new a.fn.oembed.OEmbedProvider("asciiartfarts","rich",["asciiartfarts.com/\\d+.html"],null,{yql:{xpath:"//pre/font",from:"htmlstring",datareturn:function(a){return a.result?'\x3cpre style\x3d"background-color:#000;"\x3e'+a.result+"\x3c/div\x3e":!1}}}),new a.fn.oembed.OEmbedProvider("coveritlive","rich",["coveritlive.com/"],null,{templateRegex:/(.*)/,template:'\x3ciframe src\x3d"$1" allowtransparency\x3d"true" scrolling\x3d"no" width\x3d"615px" frameborder\x3d"0" height\x3d"625px"\x3e\x3c/iframe\x3e'}),
|
76
|
+
new a.fn.oembed.OEmbedProvider("polldaddy","rich",["polldaddy.com/"],null,{templateRegex:/(?:https?:\/\/w?w?w?.?polldaddy.com\/poll\/)([0-9]*)\//,template:'\x3cscript async type\x3d"text/javascript" charset\x3d"utf-8" src\x3d"http://static.polldaddy.com/p/$1.js"\x3e\x3c/script\x3e',nocache:1}),new a.fn.oembed.OEmbedProvider("360io","rich",["360\\.io/.+"],"http://360.io/$1",{templateRegex:/.*360\.io\/(\w+).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("bubbli",
|
77
|
+
"rich",["on\\.bubb\\.li/.+"],"http://on.bubb.li/$1",{templateRegex:/.*on\.bubb\.li\/(\w+).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("cloudup","rich",["cloudup\\.com/.+"],"http://cloudup.com/$1?chromeless",{templateRegex:[/.*cloudup\.com\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360}}),new a.fn.oembed.OEmbedProvider("codepen","rich",["codepen.io/.+"],"http://codepen.io/$1/embed/$2",{templateRegex:[/.*io\/(\w+)\/pen\/(\w+).*/,/.*io\/(\w+)\/full\/(\w+).*/],
|
78
|
+
embedtag:{tag:"iframe",width:"100%",height:"300"},nocache:1}),new a.fn.oembed.OEmbedProvider("googleviews","rich",["(.*maps\\.google\\.com\\/maps\\?).+(output\x3dsvembed).+(cbp\x3d(.*)).*"],"https://maps.google.com/maps?layer\x3dc\x26panoid\x3d$3\x26ie\x3dUTF8\x26source\x3dembed\x26output\x3dsvembed\x26cbp\x3d$5",{templateRegex:/(.*maps\.google\.com\/maps\?).+(panoid=(\w+)&).*(cbp=(.*)).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("googlemaps","rich",
|
79
|
+
["google\\.com/maps/place/.+"],"http://maps.google.com/maps?t\x3dm\x26q\x3d$1\x26output\x3dembed",{templateRegex:/.*google\.com\/maps\/place\/([\w\+]*)\/.*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("imajize","rich",["embed\\.imajize\\.com/.+"],"http://embed.imajize.com/$1",{templateRegex:/.*embed\.imajize\.com\/(.*)/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("mapjam","rich",["mapjam\\.com/.+"],"http://www.mapjam.com/$1",
|
80
|
+
{templateRegex:/.*mapjam\.com\/(.*)/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("polar","rich",["polarb\\.com/.+"],"http://assets-polarb-com.a.ssl.fastly.net/api/v4/publishers/unknown/embedded_polls/iframe?poll_id\x3d$1",{templateRegex:/.*polarb\.com\/polls\/(\w+).*/,embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("ponga","rich",["ponga\\.com/.+"],"https://www.ponga.com/embedded?id\x3d$1",{templateRegex:[/.*ponga\.com\/embedded\?id=(\w+).*/,
|
81
|
+
/.*ponga\.com\/(\w+).*/],embedtag:{tag:"iframe",width:480,height:360},nocache:1}),new a.fn.oembed.OEmbedProvider("opengraph","rich",[".*"],null,{yql:{xpath:"//meta|//title|//link",from:"html",datareturn:function(f){!f["og:title"]&&f.title&&f.description&&(f["og:title"]=f.title);if(!f["og:title"]&&!f.title)return!1;var d=a("\x3cp/\x3e");if(f["og:video"]){var b=a('\x3cembed src\x3d"'+f["og:video"]+'"/\x3e');b.attr("type",f["og:video:type"]||"application/x-shockwave-flash").css("max-height",k.maxHeight||
|
82
|
+
"auto").css("max-width",k.maxWidth||"auto");f["og:video:width"]&&b.attr("width",f["og:video:width"]);f["og:video:height"]&&b.attr("height",f["og:video:height"]);d.append(b)}else f["og:image"]&&(b=a('\x3cimg src\x3d"'+f["og:image"]+'"\x3e'),b.css("max-height",k.maxHeight||"auto").css("max-width",k.maxWidth||"auto"),f["og:image:width"]&&b.attr("width",f["og:image:width"]),f["og:image:height"]&&b.attr("height",f["og:image:height"]),d.append(b));f["og:title"]&&d.append("\x3cb\x3e"+f["og:title"]+"\x3c/b\x3e\x3cbr/\x3e");
|
83
|
+
f["og:description"]?d.append(f["og:description"]+"\x3cbr/\x3e"):f.description&&d.append(f.description+"\x3cbr/\x3e");return d}}})]})(jQuery);
|
84
|
+
String.prototype.md5=function(){var a=function(a,m){var k=(a&65535)+(m&65535);return(a>>16)+(m>>16)+(k>>16)<<16|k&65535},m=function(f,m,k,l,d,b){f=a(a(m,f),a(l,b));return a(f<<d|f>>>32-d,k)},p=function(a,r,k,l,d,b,n){return m(r&k|~r&l,a,r,d,b,n)},q=function(a,n,k,l,d,b,p){return m(n&l|k&~l,a,n,d,b,p)},n=function(a,n,k,l,d,b,p){return m(k^(n|~l),a,n,d,b,p)};return function(a){var m="",k,l=4*a.length;for(k=0;k<l;k++)m+="0123456789abcdef".charAt(a[k>>2]>>k%4*8+4&15)+"0123456789abcdef".charAt(a[k>>2]>>
|
85
|
+
k%4*8&15);return m}(function(f){var r,k,l,d,b,y=f.length,g=1732584193,e=-271733879,c=-1732584194,h=271733878;for(b=0;b<y;b+=16)r=g,k=e,l=c,d=h,g=p(g,e,c,h,f[b+0],7,-680876936),h=p(h,g,e,c,f[b+1],12,-389564586),c=p(c,h,g,e,f[b+2],17,606105819),e=p(e,c,h,g,f[b+3],22,-1044525330),g=p(g,e,c,h,f[b+4],7,-176418897),h=p(h,g,e,c,f[b+5],12,1200080426),c=p(c,h,g,e,f[b+6],17,-1473231341),e=p(e,c,h,g,f[b+7],22,-45705983),g=p(g,e,c,h,f[b+8],7,1770035416),h=p(h,g,e,c,f[b+9],12,-1958414417),c=p(c,h,g,e,f[b+10],
|
86
|
+
17,-42063),e=p(e,c,h,g,f[b+11],22,-1990404162),g=p(g,e,c,h,f[b+12],7,1804603682),h=p(h,g,e,c,f[b+13],12,-40341101),c=p(c,h,g,e,f[b+14],17,-1502002290),e=p(e,c,h,g,f[b+15],22,1236535329),g=q(g,e,c,h,f[b+1],5,-165796510),h=q(h,g,e,c,f[b+6],9,-1069501632),c=q(c,h,g,e,f[b+11],14,643717713),e=q(e,c,h,g,f[b+0],20,-373897302),g=q(g,e,c,h,f[b+5],5,-701558691),h=q(h,g,e,c,f[b+10],9,38016083),c=q(c,h,g,e,f[b+15],14,-660478335),e=q(e,c,h,g,f[b+4],20,-405537848),g=q(g,e,c,h,f[b+9],5,568446438),h=q(h,g,e,c,f[b+
|
87
|
+
14],9,-1019803690),c=q(c,h,g,e,f[b+3],14,-187363961),e=q(e,c,h,g,f[b+8],20,1163531501),g=q(g,e,c,h,f[b+13],5,-1444681467),h=q(h,g,e,c,f[b+2],9,-51403784),c=q(c,h,g,e,f[b+7],14,1735328473),e=q(e,c,h,g,f[b+12],20,-1926607734),g=m(e^c^h,g,e,f[b+5],4,-378558),h=m(g^e^c,h,g,f[b+8],11,-2022574463),c=m(h^g^e,c,h,f[b+11],16,1839030562),e=m(c^h^g,e,c,f[b+14],23,-35309556),g=m(e^c^h,g,e,f[b+1],4,-1530992060),h=m(g^e^c,h,g,f[b+4],11,1272893353),c=m(h^g^e,c,h,f[b+7],16,-155497632),e=m(c^h^g,e,c,f[b+10],23,-1094730640),
|
88
|
+
g=m(e^c^h,g,e,f[b+13],4,681279174),h=m(g^e^c,h,g,f[b+0],11,-358537222),c=m(h^g^e,c,h,f[b+3],16,-722521979),e=m(c^h^g,e,c,f[b+6],23,76029189),g=m(e^c^h,g,e,f[b+9],4,-640364487),h=m(g^e^c,h,g,f[b+12],11,-421815835),c=m(h^g^e,c,h,f[b+15],16,530742520),e=m(c^h^g,e,c,f[b+2],23,-995338651),g=n(g,e,c,h,f[b+0],6,-198630844),h=n(h,g,e,c,f[b+7],10,1126891415),c=n(c,h,g,e,f[b+14],15,-1416354905),e=n(e,c,h,g,f[b+5],21,-57434055),g=n(g,e,c,h,f[b+12],6,1700485571),h=n(h,g,e,c,f[b+3],10,-1894986606),c=n(c,h,g,e,
|
89
|
+
f[b+10],15,-1051523),e=n(e,c,h,g,f[b+1],21,-2054922799),g=n(g,e,c,h,f[b+8],6,1873313359),h=n(h,g,e,c,f[b+15],10,-30611744),c=n(c,h,g,e,f[b+6],15,-1560198380),e=n(e,c,h,g,f[b+13],21,1309151649),g=n(g,e,c,h,f[b+4],6,-145523070),h=n(h,g,e,c,f[b+11],10,-1120210379),c=n(c,h,g,e,f[b+2],15,718787259),e=n(e,c,h,g,f[b+9],21,-343485551),g=a(g,r),e=a(e,k),c=a(c,l),h=a(h,d);return[g,e,c,h]}(function(a){var m=(a.length+8>>6)+1,k=[],l,d=16*m,b=a.length;for(l=0;l<d;l++)k.push(0);for(l=0;l<b;l++)k[l>>2]|=(a.charCodeAt(l)&
|
90
|
+
255)<<l%4*8;k[l>>2]|=128<<l%4*8;k[16*m-2]=8*b;return k}(this)))};
|