Switch toolchain from yarn to npm
This commit is contained in:
parent
ec9ef9c1c2
commit
07de33605b
2
Makefile
2
Makefile
@ -43,7 +43,7 @@ build:
|
|||||||
# This is to build all the stylesheets, etc
|
# This is to build all the stylesheets, etc
|
||||||
.PHONY: build-assets
|
.PHONY: build-assets
|
||||||
build-assets:
|
build-assets:
|
||||||
yarn run production
|
npm run production
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: build
|
install: build
|
||||||
|
12647
package-lock.json
generated
Normal file
12647
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "yarn run development",
|
"dev": "npm run development",
|
||||||
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"watch-poll": "yarn run watch -- --watch-poll",
|
"watch-poll": "npm run watch -- --watch-poll",
|
||||||
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"prod": "yarns run production",
|
"prod": "npm run production",
|
||||||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
|
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -35,8 +35,8 @@
|
|||||||
"leaflet.geodesic": "^2.5.2",
|
"leaflet.geodesic": "^2.5.2",
|
||||||
"lodash": ">=4.17.19",
|
"lodash": ">=4.17.19",
|
||||||
"marked": ">0.3.18",
|
"marked": ">0.3.18",
|
||||||
"moment": "^2.24.0",
|
|
||||||
"minimist": "^1.2.2",
|
"minimist": "^1.2.2",
|
||||||
|
"moment": "^2.24.0",
|
||||||
"paper-dashboard": "^1.1.0",
|
"paper-dashboard": "^1.1.0",
|
||||||
"pe7-icon": "^1.0.4",
|
"pe7-icon": "^1.0.4",
|
||||||
"pikaday": "^1.7.0",
|
"pikaday": "^1.7.0",
|
||||||
@ -47,6 +47,7 @@
|
|||||||
"ssri": "^5.3.0",
|
"ssri": "^5.3.0",
|
||||||
"tar": ">=4.4.2",
|
"tar": ">=4.4.2",
|
||||||
"webpack": "^3.12.0",
|
"webpack": "^3.12.0",
|
||||||
|
"webpack-cli": "^3.3.12",
|
||||||
"x-editable": "1.5.1"
|
"x-editable": "1.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/assets/vendor/ckeditor4/.github/ISSUE_TEMPLATE
vendored
Normal file
1
public/assets/vendor/ckeditor4/.github/ISSUE_TEMPLATE
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
Please do not report issues in CKEditor. The correct location of CKEditor issue tracker is: https://github.com/ckeditor/ckeditor-dev/issues
|
111
public/assets/vendor/ckeditor4/README.md
vendored
111
public/assets/vendor/ckeditor4/README.md
vendored
@ -1,82 +1,79 @@
|
|||||||
CKEditor 4 - Releases
|
# CKEditor 4 [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20CKEditor%204%20on%20npm&url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fckeditor4)
|
||||||
=====================
|
|
||||||
|
|
||||||
## Releases Code
|
[![GitHub tag](https://img.shields.io/github/tag/ckeditor/ckeditor4-releases.svg)](https://github.com/ckeditor/ckeditor4-releases)
|
||||||
|
[![Dependencies](https://img.shields.io/david/ckeditor/ckeditor4.svg)](https://david-dm.org/ckeditor/ckeditor4)
|
||||||
|
[![Dev dependencies](https://img.shields.io/david/dev/ckeditor/ckeditor4.svg)](https://david-dm.org/ckeditor/ckeditor4?type=dev)
|
||||||
|
|
||||||
This repository contains the official release versions of [CKEditor 4](https://ckeditor.com/ckeditor-4/).
|
[![Join newsletter](https://img.shields.io/badge/join-newsletter-00cc99.svg)](http://eepurl.com/c3zRPr)
|
||||||
|
[![Follow twitter](https://img.shields.io/badge/follow-twitter-00cc99.svg)](https://twitter.com/ckeditor)
|
||||||
|
|
||||||
There are four versions for each release — `standard-all`, `basic`, `standard`, and `full`.
|
A highly configurable WYSIWYG HTML editor with hundreds of features, from creating rich text content with captioned images, videos, tables, or media embeds to pasting from Word and drag&drop image upload.
|
||||||
They differ in the number of plugins that are compiled into the main `ckeditor.js` file as well as the toolbar configuration.
|
|
||||||
|
|
||||||
See the [comparison](https://ckeditor.com/cke4/presets) of the `basic`, `standard`, and `full` installation presets for more details.
|
Supports a broad range of browsers, including legacy ones.
|
||||||
|
|
||||||
The `standard-all` build includes all official CKSource plugins with only those from the `standard` installation preset compiled into the `ckeditor.js` file and enabled in the configuration.
|
![CKEditor 4 screenshot](https://c.cksource.com/a/1/img/npm/ckeditor4.png)
|
||||||
|
|
||||||
All versions available in this repository were built using [CKBuilder](https://ckeditor.com/cke4/builder), so they are optimized and ready to be used in a production environment.
|
## Getting Started
|
||||||
|
|
||||||
## Documentation
|
```
|
||||||
|
npm install --save ckeditor4
|
||||||
|
```
|
||||||
|
|
||||||
Developer documentation for CKEditor is available online at: <https://ckeditor.com/docs/>.
|
Use it on your website:
|
||||||
|
|
||||||
## Installation
|
```html
|
||||||
|
<div id="editor">
|
||||||
|
<p>This is the editor content.</p>
|
||||||
|
</div>
|
||||||
|
<script src="./node_modules/ckeditor4/ckeditor.js"></script>
|
||||||
|
<script>
|
||||||
|
CKEDITOR.replace( 'editor' );
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
### Git clone
|
You can also load CKEditor 4 using [CDN](https://cdn.ckeditor.com/#ckeditor4).
|
||||||
|
|
||||||
To install one of the available releases, just clone this repository and switch to the respective branch (see next section):
|
## Features
|
||||||
|
|
||||||
git clone -b <release branch> git://github.com/ckeditor/ckeditor4-releases.git
|
* Over 500 plugins in the [Add-ons Repository](https://ckeditor.com/cke4/addons).
|
||||||
|
* Pasting from Microsoft Word and Excel.
|
||||||
|
* Drag&drop image uploads.
|
||||||
|
* Media embeds to insert videos, tweets, maps, slideshows.
|
||||||
|
* Powerful clipboard integration.
|
||||||
|
* Content quality control with Advanced Content Filter.
|
||||||
|
* Extensible widget system.
|
||||||
|
* Custom table selection.
|
||||||
|
* Accessibility conforming to WCAG and Section 508.
|
||||||
|
* Over 60 localizations available with full RTL support.
|
||||||
|
|
||||||
### Git submodule
|
## Presets
|
||||||
|
|
||||||
If you are using git for your project and you want to integrate CKEditor, we recommend to add this repository as a
|
The CKEditor 4 npm package comes in the `standard-all` preset, so it includes all official CKEditor plugins, with those from the [standard package](https://sdk.ckeditor.com/samples/standardpreset.html) active by default.
|
||||||
[submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
|
|
||||||
|
|
||||||
git submodule add -b <release branch> git://github.com/ckeditor/ckeditor-releases.git <clone dir>
|
## Further Resources
|
||||||
git commit -m "Added CKEditor submodule in <clone dir> directory."
|
|
||||||
|
|
||||||
### Using Package Managers
|
* [CKEditor 4 demo](https://ckeditor.com/ckeditor-4/)
|
||||||
|
* [Documentation](https://ckeditor.com/docs/ckeditor4/latest/)
|
||||||
|
* [API documentation](https://ckeditor.com/docs/ckeditor4/latest/api/index.html)
|
||||||
|
* [Configuration reference](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html)
|
||||||
|
* [CKEditor SDK with more samples](https://sdk.ckeditor.com/)
|
||||||
|
|
||||||
See the [Installing CKEditor with Package Managers](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_package_managers.html) article for more details about installing CKEditor with [Bower](https://bower.io), [Composer](https://getcomposer.org/) and [npm](https://www.npmjs.com/).
|
If you are looking for CKEditor 5, here's a link to the relevant npm package: <https://www.npmjs.com/package/ckeditor5>
|
||||||
|
|
||||||
## Repository Structure
|
## Browser Support
|
||||||
|
|
||||||
### Branches
|
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome (Android) | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png" alt="iOS Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>iOS Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
|
||||||
|
| --------- | --------- | --------- | --------- | --------- | --------- | --------- |
|
||||||
|
| IE8, IE9, IE10, IE11, Edge| latest version| latest version| latest version| latest version| latest version| latest version
|
||||||
|
|
||||||
This repository contains the following branches:
|
Find out more in the [Browser Compatibility guide](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_browsers.html#officially-supported-browsers).
|
||||||
|
|
||||||
- `master` and `latest` – the latest release of the `standard-all` preset (including betas).
|
## Contribute
|
||||||
- `stable` – the latest stable release of the `standard-all` preset (non-beta).
|
|
||||||
- `A.B.x` (e.g. `4.3.x`) – the latest release of the `standard-all` preset in the `A.B` branch.
|
|
||||||
- `(basic|standard|full)/stable` – the latest stable release tag point (non-beta).
|
|
||||||
- `(basic|standard|full)/latest` – the latest release tag point (including betas).
|
|
||||||
- `(basic|standard|full)/A.B.x` (e.g. `basic/4.0.x`) – the latest releases in the `A.B` branch.
|
|
||||||
|
|
||||||
### Tags
|
If you would like to help maintain the project, follow the [Contribution instructions](https://github.com/ckeditor/ckeditor4/blob/master/.github/CONTRIBUTING.md).
|
||||||
|
|
||||||
**Since version 4.3.3** this repository uses the following tag naming rules:
|
## License
|
||||||
|
|
||||||
- `x.y.z` – contains the `standard-all` editor build, e.g. `4.3.3`, `4.4.0` etc.
|
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
|
||||||
- `(basic|standard|full)/x.y.z` – contains the editor build with a given preset, e.g. `basic/4.3.3`.
|
|
||||||
|
|
||||||
The version numbers follow the [Semantic Versioning 2.0.0](http://semver.org/) scheme.
|
For licensing, see LICENSE.md or <https://ckeditor.com/legal/ckeditor-oss-license>
|
||||||
|
|
||||||
Up to version **4.3.2** the tags were released in the following form `x.y[.z]/(basic|standard|full)`.
|
|
||||||
For example: `4.0/basic`, `4.0.1/standard`. This convention was changed in CKEditor 4.3.3 to conform to the Semantic Versioning scheme.
|
|
||||||
|
|
||||||
## Checking Your Installation
|
|
||||||
|
|
||||||
The editor comes with a few sample pages that can be used to verify if the installation succeeded. Take a look at the `samples` directory.
|
|
||||||
|
|
||||||
To test your installation, just call the following page for your website:
|
|
||||||
|
|
||||||
http://<your site>/<CKEditor installation path>/samples/index.html
|
|
||||||
|
|
||||||
For example:
|
|
||||||
|
|
||||||
http://www.example.com/ckeditor/samples/index.html
|
|
||||||
|
|
||||||
### License
|
|
||||||
|
|
||||||
Licensed under the GPL, LGPL, and MPL licenses, at your choice.
|
|
||||||
|
|
||||||
Please check the `LICENSE.md` file for more information about the license.
|
|
||||||
|
BIN
public/assets/vendor/ckeditor4/assets/ckeditor4.png
vendored
Normal file
BIN
public/assets/vendor/ckeditor4/assets/ckeditor4.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 231 KiB |
2614
public/assets/vendor/ckeditor4/ckeditor.js
vendored
2614
public/assets/vendor/ckeditor4/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
34
public/assets/vendor/ckeditor4/config.js
vendored
34
public/assets/vendor/ckeditor4/config.js
vendored
@ -4,7 +4,35 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
CKEDITOR.editorConfig = function( config ) {
|
CKEDITOR.editorConfig = function( config ) {
|
||||||
// Define changes to default configuration here. For example:
|
// Define changes to default configuration here.
|
||||||
// config.language = 'fr';
|
// For complete reference see:
|
||||||
// config.uiColor = '#AADC6E';
|
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
|
||||||
|
|
||||||
|
// The toolbar groups arrangement, optimized for two toolbar rows.
|
||||||
|
config.toolbarGroups = [
|
||||||
|
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
|
||||||
|
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
|
||||||
|
{ name: 'links' },
|
||||||
|
{ name: 'insert' },
|
||||||
|
{ name: 'forms' },
|
||||||
|
{ name: 'tools' },
|
||||||
|
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
|
||||||
|
{ name: 'others' },
|
||||||
|
'/',
|
||||||
|
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
||||||
|
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
|
||||||
|
{ name: 'styles' },
|
||||||
|
{ name: 'colors' },
|
||||||
|
{ name: 'about' }
|
||||||
|
];
|
||||||
|
|
||||||
|
// Remove some buttons provided by the standard plugins, which are
|
||||||
|
// not needed in the Standard(s) toolbar.
|
||||||
|
config.removeButtons = 'Underline,Subscript,Superscript';
|
||||||
|
|
||||||
|
// Set the most common block elements.
|
||||||
|
config.format_tags = 'p;h1;h2;h3;pre';
|
||||||
|
|
||||||
|
// Simplify the dialog windows.
|
||||||
|
config.removeDialogTabs = 'image:advanced;link:advanced';
|
||||||
};
|
};
|
||||||
|
63
public/assets/vendor/ckeditor4/lang/_translationstatus.txt
vendored
Normal file
63
public/assets/vendor/ckeditor4/lang/_translationstatus.txt
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
||||||
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||||
|
|
||||||
|
af.js Found: 62 Missing: 4
|
||||||
|
ar.js Found: 51 Missing: 15
|
||||||
|
bg.js Found: 58 Missing: 8
|
||||||
|
bn.js Found: 40 Missing: 26
|
||||||
|
bs.js Found: 29 Missing: 37
|
||||||
|
ca.js Found: 61 Missing: 5
|
||||||
|
cs.js Found: 66 Missing: 0
|
||||||
|
cy.js Found: 66 Missing: 0
|
||||||
|
da.js Found: 66 Missing: 0
|
||||||
|
de.js Found: 66 Missing: 0
|
||||||
|
el.js Found: 59 Missing: 7
|
||||||
|
en-au.js Found: 38 Missing: 28
|
||||||
|
en-ca.js Found: 37 Missing: 29
|
||||||
|
en-gb.js Found: 61 Missing: 5
|
||||||
|
eo.js Found: 66 Missing: 0
|
||||||
|
es.js Found: 66 Missing: 0
|
||||||
|
et.js Found: 66 Missing: 0
|
||||||
|
eu.js Found: 48 Missing: 18
|
||||||
|
fa.js Found: 66 Missing: 0
|
||||||
|
fi.js Found: 66 Missing: 0
|
||||||
|
fo.js Found: 66 Missing: 0
|
||||||
|
fr-ca.js Found: 42 Missing: 24
|
||||||
|
fr.js Found: 66 Missing: 0
|
||||||
|
gl.js Found: 40 Missing: 26
|
||||||
|
gu.js Found: 66 Missing: 0
|
||||||
|
he.js Found: 66 Missing: 0
|
||||||
|
hi.js Found: 43 Missing: 23
|
||||||
|
hr.js Found: 66 Missing: 0
|
||||||
|
hu.js Found: 63 Missing: 3
|
||||||
|
is.js Found: 41 Missing: 25
|
||||||
|
it.js Found: 66 Missing: 0
|
||||||
|
ja.js Found: 62 Missing: 4
|
||||||
|
ka.js Found: 62 Missing: 4
|
||||||
|
km.js Found: 40 Missing: 26
|
||||||
|
ko.js Found: 40 Missing: 26
|
||||||
|
lt.js Found: 66 Missing: 0
|
||||||
|
lv.js Found: 40 Missing: 26
|
||||||
|
mk.js Found: 0 Missing: 66
|
||||||
|
mn.js Found: 40 Missing: 26
|
||||||
|
ms.js Found: 39 Missing: 27
|
||||||
|
nb.js Found: 66 Missing: 0
|
||||||
|
nl.js Found: 65 Missing: 1
|
||||||
|
no.js Found: 66 Missing: 0
|
||||||
|
pl.js Found: 66 Missing: 0
|
||||||
|
pt-br.js Found: 66 Missing: 0
|
||||||
|
pt.js Found: 52 Missing: 14
|
||||||
|
ro.js Found: 61 Missing: 5
|
||||||
|
ru.js Found: 66 Missing: 0
|
||||||
|
sk.js Found: 49 Missing: 17
|
||||||
|
sl.js Found: 48 Missing: 18
|
||||||
|
sr-latn.js Found: 40 Missing: 26
|
||||||
|
sr.js Found: 40 Missing: 26
|
||||||
|
sv.js Found: 62 Missing: 4
|
||||||
|
th.js Found: 40 Missing: 26
|
||||||
|
tr.js Found: 66 Missing: 0
|
||||||
|
ug.js Found: 66 Missing: 0
|
||||||
|
uk.js Found: 66 Missing: 0
|
||||||
|
vi.js Found: 66 Missing: 0
|
||||||
|
zh-cn.js Found: 66 Missing: 0
|
||||||
|
zh.js Found: 58 Missing: 8
|
4
public/assets/vendor/ckeditor4/lang/af.js
vendored
4
public/assets/vendor/ckeditor4/lang/af.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ar.js
vendored
4
public/assets/vendor/ckeditor4/lang/ar.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/az.js
vendored
4
public/assets/vendor/ckeditor4/lang/az.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/bg.js
vendored
4
public/assets/vendor/ckeditor4/lang/bg.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/bn.js
vendored
4
public/assets/vendor/ckeditor4/lang/bn.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/bs.js
vendored
4
public/assets/vendor/ckeditor4/lang/bs.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ca.js
vendored
4
public/assets/vendor/ckeditor4/lang/ca.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/cs.js
vendored
4
public/assets/vendor/ckeditor4/lang/cs.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/cy.js
vendored
4
public/assets/vendor/ckeditor4/lang/cy.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/da.js
vendored
4
public/assets/vendor/ckeditor4/lang/da.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/de-ch.js
vendored
4
public/assets/vendor/ckeditor4/lang/de-ch.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/de.js
vendored
4
public/assets/vendor/ckeditor4/lang/de.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/el.js
vendored
4
public/assets/vendor/ckeditor4/lang/el.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/en-au.js
vendored
4
public/assets/vendor/ckeditor4/lang/en-au.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/en-ca.js
vendored
4
public/assets/vendor/ckeditor4/lang/en-ca.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/en-gb.js
vendored
4
public/assets/vendor/ckeditor4/lang/en-gb.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/en.js
vendored
4
public/assets/vendor/ckeditor4/lang/en.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/eo.js
vendored
4
public/assets/vendor/ckeditor4/lang/eo.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/es-mx.js
vendored
4
public/assets/vendor/ckeditor4/lang/es-mx.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/es.js
vendored
4
public/assets/vendor/ckeditor4/lang/es.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/et.js
vendored
4
public/assets/vendor/ckeditor4/lang/et.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/eu.js
vendored
4
public/assets/vendor/ckeditor4/lang/eu.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/fa.js
vendored
4
public/assets/vendor/ckeditor4/lang/fa.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/fi.js
vendored
4
public/assets/vendor/ckeditor4/lang/fi.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/fo.js
vendored
4
public/assets/vendor/ckeditor4/lang/fo.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/fr-ca.js
vendored
4
public/assets/vendor/ckeditor4/lang/fr-ca.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/fr.js
vendored
4
public/assets/vendor/ckeditor4/lang/fr.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/gl.js
vendored
4
public/assets/vendor/ckeditor4/lang/gl.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/gu.js
vendored
4
public/assets/vendor/ckeditor4/lang/gu.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/he.js
vendored
4
public/assets/vendor/ckeditor4/lang/he.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/hi.js
vendored
4
public/assets/vendor/ckeditor4/lang/hi.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/hr.js
vendored
4
public/assets/vendor/ckeditor4/lang/hr.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/hu.js
vendored
4
public/assets/vendor/ckeditor4/lang/hu.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/id.js
vendored
4
public/assets/vendor/ckeditor4/lang/id.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/is.js
vendored
4
public/assets/vendor/ckeditor4/lang/is.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/it.js
vendored
4
public/assets/vendor/ckeditor4/lang/it.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ja.js
vendored
4
public/assets/vendor/ckeditor4/lang/ja.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ka.js
vendored
4
public/assets/vendor/ckeditor4/lang/ka.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/km.js
vendored
4
public/assets/vendor/ckeditor4/lang/km.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ko.js
vendored
4
public/assets/vendor/ckeditor4/lang/ko.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ku.js
vendored
4
public/assets/vendor/ckeditor4/lang/ku.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/lt.js
vendored
4
public/assets/vendor/ckeditor4/lang/lt.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/lv.js
vendored
4
public/assets/vendor/ckeditor4/lang/lv.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/mk.js
vendored
4
public/assets/vendor/ckeditor4/lang/mk.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/mn.js
vendored
4
public/assets/vendor/ckeditor4/lang/mn.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ms.js
vendored
4
public/assets/vendor/ckeditor4/lang/ms.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/nb.js
vendored
4
public/assets/vendor/ckeditor4/lang/nb.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/nl.js
vendored
4
public/assets/vendor/ckeditor4/lang/nl.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/no.js
vendored
4
public/assets/vendor/ckeditor4/lang/no.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/oc.js
vendored
4
public/assets/vendor/ckeditor4/lang/oc.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/pl.js
vendored
4
public/assets/vendor/ckeditor4/lang/pl.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/pt-br.js
vendored
4
public/assets/vendor/ckeditor4/lang/pt-br.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/pt.js
vendored
4
public/assets/vendor/ckeditor4/lang/pt.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ro.js
vendored
4
public/assets/vendor/ckeditor4/lang/ro.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ru.js
vendored
4
public/assets/vendor/ckeditor4/lang/ru.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/si.js
vendored
4
public/assets/vendor/ckeditor4/lang/si.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/sk.js
vendored
4
public/assets/vendor/ckeditor4/lang/sk.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/sl.js
vendored
4
public/assets/vendor/ckeditor4/lang/sl.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/sq.js
vendored
4
public/assets/vendor/ckeditor4/lang/sq.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/sr.js
vendored
4
public/assets/vendor/ckeditor4/lang/sr.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/sv.js
vendored
4
public/assets/vendor/ckeditor4/lang/sv.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/th.js
vendored
4
public/assets/vendor/ckeditor4/lang/th.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/tr.js
vendored
4
public/assets/vendor/ckeditor4/lang/tr.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/tt.js
vendored
4
public/assets/vendor/ckeditor4/lang/tt.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/ug.js
vendored
4
public/assets/vendor/ckeditor4/lang/ug.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/uk.js
vendored
4
public/assets/vendor/ckeditor4/lang/uk.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/vi.js
vendored
4
public/assets/vendor/ckeditor4/lang/vi.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/zh-cn.js
vendored
4
public/assets/vendor/ckeditor4/lang/zh-cn.js
vendored
File diff suppressed because one or more lines are too long
4
public/assets/vendor/ckeditor4/lang/zh.js
vendored
4
public/assets/vendor/ckeditor4/lang/zh.js
vendored
File diff suppressed because one or more lines are too long
50
public/assets/vendor/ckeditor4/package.json
vendored
50
public/assets/vendor/ckeditor4/package.json
vendored
@ -1,12 +1,38 @@
|
|||||||
{
|
{
|
||||||
"name": "ckeditor4",
|
"_from": "ckeditor4@4.14.0",
|
||||||
"version": "4.14.0",
|
"_id": "ckeditor4@4.14.0",
|
||||||
"description": "JavaScript WYSIWYG web text editor.",
|
"_inBundle": false,
|
||||||
"main": "ckeditor.js",
|
"_integrity": "sha512-g5p3bhbxbwB094bE7ss0rOyvG/azYdRjLTyngnPM2+fKZhnPrMVaFDx3SiiWKB+zyvndT3Deu54VTv/z2MQJCA==",
|
||||||
"repository": {
|
"_location": "/ckeditor4",
|
||||||
"type": "git",
|
"_phantomChildren": {},
|
||||||
"url": "git+https://github.com/ckeditor/ckeditor4-releases.git"
|
"_requested": {
|
||||||
|
"type": "version",
|
||||||
|
"registry": true,
|
||||||
|
"raw": "ckeditor4@4.14.0",
|
||||||
|
"name": "ckeditor4",
|
||||||
|
"escapedName": "ckeditor4",
|
||||||
|
"rawSpec": "4.14.0",
|
||||||
|
"saveSpec": null,
|
||||||
|
"fetchSpec": "4.14.0"
|
||||||
},
|
},
|
||||||
|
"_requiredBy": [
|
||||||
|
"/"
|
||||||
|
],
|
||||||
|
"_resolved": "https://registry.npmjs.org/ckeditor4/-/ckeditor4-4.14.0.tgz",
|
||||||
|
"_shasum": "bfcbe942599fa0c6f488309ecbfe38b2519f919b",
|
||||||
|
"_spec": "ckeditor4@4.14.0",
|
||||||
|
"_where": "C:\\Users\\Nabeel\\dev\\phpvms",
|
||||||
|
"author": {
|
||||||
|
"name": "CKSource",
|
||||||
|
"url": "https://cksource.com/"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/ckeditor/ckeditor4/issues"
|
||||||
|
},
|
||||||
|
"bundleDependencies": false,
|
||||||
|
"deprecated": false,
|
||||||
|
"description": "JavaScript WYSIWYG web text editor.",
|
||||||
|
"homepage": "https://ckeditor.com/ckeditor-4/",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ckeditor4",
|
"ckeditor4",
|
||||||
"ckeditor",
|
"ckeditor",
|
||||||
@ -18,10 +44,12 @@
|
|||||||
"text",
|
"text",
|
||||||
"javascript"
|
"javascript"
|
||||||
],
|
],
|
||||||
"author": "CKSource (https://cksource.com/)",
|
|
||||||
"license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)",
|
"license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)",
|
||||||
"bugs": {
|
"main": "ckeditor.js",
|
||||||
"url": "https://github.com/ckeditor/ckeditor4/issues"
|
"name": "ckeditor4",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/ckeditor/ckeditor4-releases.git"
|
||||||
},
|
},
|
||||||
"homepage": "https://ckeditor.com/ckeditor-4/"
|
"version": "4.14.0"
|
||||||
}
|
}
|
||||||
|
9
public/assets/vendor/ckeditor4/plugins/adobeair/plugin.js
vendored
Normal file
9
public/assets/vendor/ckeditor4/plugins/adobeair/plugin.js
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
||||||
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||||
|
*/
|
||||||
|
(function(){function f(a){a=a.getElementsByTag("*");for(var c=a.count(),b,d=0;d<c;d++)b=a.getItem(d),function(a){for(var b=0;b<l.length;b++)(function(b){var d=a.getAttribute("on"+b);a.hasAttribute("on"+b)&&(a.removeAttribute("on"+b),a.on(b,function(b){var c=/(return\s*)?CKEDITOR\.tools\.callFunction\(([^)]+)\)/.exec(d),k=c&&c[1],e=c&&c[2].split(","),c=/return false;/.test(d);if(e){for(var n=e.length,h,g=0;g<n;g++){e[g]=h=CKEDITOR.tools.trim(e[g]);var f=h.match(/^(["'])([^"']*?)\1$/);if(f)e[g]=f[2];
|
||||||
|
else if(h.match(/\d+/))e[g]=parseInt(h,10);else switch(h){case "this":e[g]=a.$;break;case "event":e[g]=b.data.$;break;case "null":e[g]=null}}e=CKEDITOR.tools.callFunction.apply(window,e);k&&!1===e&&(c=1)}c&&b.data.preventDefault()}))})(l[b])}(b)}var l="click keydown mousedown keypress mouseover mouseout".split(" ");CKEDITOR.plugins.add("adobeair",{onLoad:function(){CKEDITOR.env.air&&(CKEDITOR.dom.document.prototype.write=CKEDITOR.tools.override(CKEDITOR.dom.document.prototype.write,function(a){function c(b,
|
||||||
|
a,c,k){a=b.append(a);(c=CKEDITOR.htmlParser.fragment.fromHtml(c).children[0].attributes)&&a.setAttributes(c);k&&a.append(b.getDocument().createText(k))}return function(b){if(this.getBody()){var d=this,f=this.getHead();b=b.replace(/(<style[^>]*>)([\s\S]*?)<\/style>/gi,function(a,b,d){c(f,"style",b,d);return""});b=b.replace(/<base\b[^>]*\/>/i,function(b){c(f,"base",b);return""});b=b.replace(/<title>([\s\S]*)<\/title>/i,function(b,a){d.$.title=a;return""});b=b.replace(/<head>([\s\S]*)<\/head>/i,function(b){var a=
|
||||||
|
new CKEDITOR.dom.element("div",d);a.setHtml(b);a.moveChildren(f);return""});b.replace(/(<body[^>]*>)([\s\S]*)(?=$|<\/body>)/i,function(b,a,c){d.getBody().setHtml(c);(b=CKEDITOR.htmlParser.fragment.fromHtml(a).children[0].attributes)&&d.getBody().setAttributes(b)})}else a.apply(this,arguments)}}),CKEDITOR.addCss("body.cke_editable { padding: 8px }"),CKEDITOR.ui.on("ready",function(a){a=a.data;if(a._.panel){var c=a._.panel._.panel,b;(function m(){c.isLoaded?(b=c._.holder,f(b)):setTimeout(m,30)})()}else a instanceof
|
||||||
|
CKEDITOR.dialog&&f(a._.element)}))},init:function(a){CKEDITOR.env.air&&(a.on("uiReady",function(){f(a.container);a.on("elementsPathUpdate",function(a){f(a.data.space)})}),a.on("contentDom",function(){a.document.on("click",function(a){a.data.preventDefault(!0)})}))}})})();
|
7
public/assets/vendor/ckeditor4/plugins/ajax/plugin.js
vendored
Normal file
7
public/assets/vendor/ckeditor4/plugins/ajax/plugin.js
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
||||||
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||||
|
*/
|
||||||
|
(function(){CKEDITOR.plugins.add("ajax",{requires:"xml"});CKEDITOR.ajax=function(){function g(){if(!CKEDITOR.env.ie||"file:"!=location.protocol)try{return new XMLHttpRequest}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(b){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}return null}function h(a){return 4==a.readyState&&(200<=a.status&&300>a.status||304==a.status||0===a.status||1223==a.status)}function k(a){return h(a)?a.responseText:null}function m(a){if(h(a)){var b=
|
||||||
|
a.responseXML;return new CKEDITOR.xml(b&&b.firstChild?b:a.responseText)}return null}function l(a,b,f){var d=!!b,c=g();if(!c)return null;c.open("GET",a,d);d&&(c.onreadystatechange=function(){4==c.readyState&&(b(f(c)),c=null)});c.send(null);return d?"":f(c)}function n(a,b,f,d,c){var e=g();if(!e)return null;e.open("POST",a,!0);e.onreadystatechange=function(){4==e.readyState&&(d&&d(c(e)),e=null)};e.setRequestHeader("Content-type",f||"application/x-www-form-urlencoded; charset\x3dUTF-8");e.send(b)}return{load:function(a,
|
||||||
|
b){return l(a,b,k)},post:function(a,b,f,d){return n(a,b,f,d,k)},loadXml:function(a,b){return l(a,b,m)}}}()})();
|
21
public/assets/vendor/ckeditor4/plugins/autocomplete/plugin.js
vendored
Normal file
21
public/assets/vendor/ckeditor4/plugins/autocomplete/plugin.js
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
||||||
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||||
|
*/
|
||||||
|
(function(){function f(a,b){var c=a.config.autocomplete_commitKeystrokes||CKEDITOR.config.autocomplete_commitKeystrokes;this.editor=a;this.throttle=void 0!==b.throttle?b.throttle:20;this.view=this.getView();this.model=this.getModel(b.dataCallback);this.model.itemsLimit=b.itemsLimit;this.textWatcher=this.getTextWatcher(b.textTestCallback);this.commitKeystrokes=CKEDITOR.tools.array.isArray(c)?c.slice():[c];this._listeners=[];this.outputTemplate=void 0!==b.outputTemplate?new CKEDITOR.template(b.outputTemplate):
|
||||||
|
null;b.itemTemplate&&(this.view.itemTemplate=new CKEDITOR.template(b.itemTemplate));if("ready"===this.editor.status)this.attach();else this.editor.on("instanceReady",function(){this.attach()},this);a.on("destroy",function(){this.destroy()},this)}function g(a){this.itemTemplate=new CKEDITOR.template('\x3cli data-id\x3d"{id}"\x3e{name}\x3c/li\x3e');this.editor=a}function h(a){this.dataCallback=a;this.isActive=!1;this.itemsLimit=0}function l(a){return CKEDITOR.tools.array.reduce(CKEDITOR.tools.object.keys(a),
|
||||||
|
function(b,c){b[c]=CKEDITOR.tools.htmlEncode(a[c]);return b},{})}CKEDITOR.plugins.add("autocomplete",{requires:"textwatcher",onLoad:function(){CKEDITOR.document.appendStyleSheet(this.path+"skins/default.css")},isSupportedEnvironment:function(){return!CKEDITOR.env.ie||8<CKEDITOR.env.version}});f.prototype={attach:function(){function a(){this._listeners.push(d.on("keydown",function(a){this.onKeyDown(a)},this,null,5))}var b=this.editor,c=CKEDITOR.document.getWindow(),d=b.editable(),k=d.isInline()?d:
|
||||||
|
d.getDocument();CKEDITOR.env.iOS&&!d.isInline()&&(k=b.window.getFrame().getParent());this.view.append();this.view.attach();this.textWatcher.attach();this._listeners.push(this.textWatcher.on("matched",this.onTextMatched,this));this._listeners.push(this.textWatcher.on("unmatched",this.onTextUnmatched,this));this._listeners.push(this.model.on("change-data",this.modelChangeListener,this));this._listeners.push(this.model.on("change-selectedItemId",this.onSelectedItemId,this));this._listeners.push(this.view.on("change-selectedItemId",
|
||||||
|
this.onSelectedItemId,this));this._listeners.push(this.view.on("click-item",this.onItemClick,this));this._listeners.push(c.on("scroll",function(){this.viewRepositionListener()},this));this._listeners.push(k.on("scroll",function(){this.viewRepositionListener()},this));this._listeners.push(b.on("contentDom",a,this));this._listeners.push(this.view.element.on("mousedown",function(a){a.data.preventDefault()},null,null,9999));d&&a.call(this)},close:function(){this.model.setActive(!1);this.view.close()},
|
||||||
|
commit:function(a){if(this.model.isActive){this.close();if(null==a&&(a=this.model.selectedItemId,null==a))return;a=this.model.getItemById(a);var b=this.editor;b.fire("saveSnapshot");b.getSelection().selectRanges([this.model.range]);b.insertHtml(this.getHtmlToInsert(a),"text");b.fire("saveSnapshot")}},destroy:function(){CKEDITOR.tools.array.forEach(this._listeners,function(a){a.removeListener()});this._listeners=[];this.view.element&&this.view.element.remove()},getHtmlToInsert:function(a){a=l(a);return this.outputTemplate?
|
||||||
|
this.outputTemplate.output(a):a.name},getModel:function(a){var b=this;return new h(function(c,d){return a.call(this,CKEDITOR.tools.extend({autocomplete:b},c),d)})},getTextWatcher:function(a){return new CKEDITOR.plugins.textWatcher(this.editor,a,this.throttle)},getView:function(){return new g(this.editor)},open:function(){this.model.hasData()&&(this.model.setActive(!0),this.view.open(),this.model.selectFirst(),this.view.updatePosition(this.model.range))},viewRepositionListener:function(){this.model.isActive&&
|
||||||
|
this.view.updatePosition(this.model.range)},modelChangeListener:function(a){this.model.hasData()?(this.view.updateItems(a.data),this.open()):this.close()},onItemClick:function(a){this.commit(a.data)},onKeyDown:function(a){if(this.model.isActive){var b=a.data.getKey(),c=!1;27==b?(this.close(),this.textWatcher.unmatch(),c=!0):40==b?(this.model.selectNext(),c=!0):38==b?(this.model.selectPrevious(),c=!0):-1!=CKEDITOR.tools.indexOf(this.commitKeystrokes,b)&&(this.commit(),this.textWatcher.unmatch(),c=
|
||||||
|
!0);c&&(a.cancel(),a.data.preventDefault(),this.textWatcher.consumeNext())}},onSelectedItemId:function(a){this.model.setItem(a.data);this.view.selectItem(a.data)},onTextMatched:function(a){this.model.setActive(!1);this.model.setQuery(a.data.text,a.data.range)},onTextUnmatched:function(){this.model.query=null;this.model.lastRequestId=null;this.close()}};g.prototype={append:function(){this.document=CKEDITOR.document;this.element=this.createElement();this.document.getBody().append(this.element)},appendItems:function(a){this.element.setHtml("");
|
||||||
|
this.element.append(a)},attach:function(){this.element.on("click",function(a){(a=a.data.getTarget().getAscendant(this.isItemElement,!0))&&this.fire("click-item",a.data("id"))},this);this.element.on("mouseover",function(a){a=a.data.getTarget();this.element.contains(a)&&(a=a.getAscendant(function(a){return a.hasAttribute("data-id")},!0))&&(a=a.data("id"),this.fire("change-selectedItemId",a))},this)},close:function(){this.element.removeClass("cke_autocomplete_opened")},createElement:function(){var a=
|
||||||
|
new CKEDITOR.dom.element("ul",this.document);a.addClass("cke_autocomplete_panel");a.setStyle("z-index",this.editor.config.baseFloatZIndex-3);return a},createItem:function(a){a=l(a);return CKEDITOR.dom.element.createFromHtml(this.itemTemplate.output(a),this.document)},getViewPosition:function(a){a=a.getClientRects();a=a[a.length-1];var b;b=this.editor.editable();b=b.isInline()?CKEDITOR.document.getWindow().getScrollPosition():b.getParent().getDocumentPosition(CKEDITOR.document);var c=CKEDITOR.document.getBody();
|
||||||
|
"static"===c.getComputedStyle("position")&&(c=c.getParent());c=c.getDocumentPosition();b.x-=c.x;b.y-=c.y;return{top:a.top+b.y,bottom:a.top+a.height+b.y,left:a.left+b.x}},getItemById:function(a){return this.element.findOne('li[data-id\x3d"'+a+'"]')},isItemElement:function(a){return a.type==CKEDITOR.NODE_ELEMENT&&Boolean(a.data("id"))},open:function(){this.element.addClass("cke_autocomplete_opened")},selectItem:function(a){null!=this.selectedItemId&&this.getItemById(this.selectedItemId).removeClass("cke_autocomplete_selected");
|
||||||
|
var b=this.getItemById(a);b.addClass("cke_autocomplete_selected");this.selectedItemId=a;this.scrollElementTo(b)},setPosition:function(a){var b=this.editor,c=this.element.getSize("height"),d=b.editable(),b=CKEDITOR.env.iOS&&!d.isInline()?b.window.getFrame().getParent().getClientRect(!0):d.isInline()?d.getClientRect(!0):b.window.getFrame().getClientRect(!0),d=a.top-b.top,k=b.bottom-a.bottom,e;e=a.top<b.top?b.top:Math.min(b.bottom,a.bottom);c>k&&c<d&&(e=a.top-c);b.bottom<a.bottom&&(e=Math.min(a.top-
|
||||||
|
c,b.bottom-c));b.top>a.top&&(e=Math.max(a.bottom,b.top));this.element.setStyles({left:a.left+"px",top:e+"px"})},scrollElementTo:function(a){a.scrollIntoParent(this.element)},updateItems:function(a){var b,c=new CKEDITOR.dom.documentFragment(this.document);for(b=0;b<a.length;++b)c.append(this.createItem(a[b]));this.appendItems(c);this.selectedItemId=null},updatePosition:function(a){this.setPosition(this.getViewPosition(a))}};CKEDITOR.event.implementOn(g.prototype);h.prototype={getIndexById:function(a){if(!this.hasData())return-1;
|
||||||
|
for(var b=this.data,c=0,d=b.length;c<d;c++)if(b[c].id==a)return c;return-1},getItemById:function(a){a=this.getIndexById(a);return~a&&this.data[a]||null},hasData:function(){return Boolean(this.data&&this.data.length)},setItem:function(a){if(0>this.getIndexById(a))throw Error("Item with given id does not exist");this.selectedItemId=a},select:function(a){this.fire("change-selectedItemId",a)},selectFirst:function(){this.hasData()&&this.select(this.data[0].id)},selectLast:function(){this.hasData()&&this.select(this.data[this.data.length-
|
||||||
|
1].id)},selectNext:function(){if(null==this.selectedItemId)this.selectFirst();else{var a=this.getIndexById(this.selectedItemId);0>a||a+1==this.data.length?this.selectFirst():this.select(this.data[a+1].id)}},selectPrevious:function(){if(null==this.selectedItemId)this.selectLast();else{var a=this.getIndexById(this.selectedItemId);0>=a?this.selectLast():this.select(this.data[a-1].id)}},setActive:function(a){this.isActive=a;this.fire("change-isActive",a)},setQuery:function(a,b){var c=this,d=CKEDITOR.tools.getNextId();
|
||||||
|
this.lastRequestId=d;this.query=a;this.range=b;this.selectedItemId=this.data=null;this.dataCallback({query:a,range:b},function(a){d==c.lastRequestId&&(c.data=c.itemsLimit?a.slice(0,c.itemsLimit):a,c.fire("change-data",c.data))})}};CKEDITOR.event.implementOn(h.prototype);CKEDITOR.plugins.autocomplete=f;f.view=g;f.model=h;CKEDITOR.config.autocomplete_commitKeystrokes=[9,13]})();
|
38
public/assets/vendor/ckeditor4/plugins/autocomplete/skins/default.css
vendored
Normal file
38
public/assets/vendor/ckeditor4/plugins/autocomplete/skins/default.css
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
||||||
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||||
|
*/
|
||||||
|
|
||||||
|
.cke_autocomplete_panel
|
||||||
|
{
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 200px;
|
||||||
|
max-height: 300px;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
background: #FFF;
|
||||||
|
border: 1px solid #b6b6b6;
|
||||||
|
border-bottom-color: #999;
|
||||||
|
border-radius: 3px;
|
||||||
|
font: 12px Arial, Helvetica, Tahoma, Verdana, Sans-Serif;
|
||||||
|
}
|
||||||
|
.cke_autocomplete_opened
|
||||||
|
{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.cke_autocomplete_panel > li
|
||||||
|
{
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.cke_autocomplete_panel > li:hover
|
||||||
|
{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.cke_autocomplete_selected, .cke_autocomplete_panel > li:hover
|
||||||
|
{
|
||||||
|
background-color: #EFF0EF;
|
||||||
|
}
|
1
public/assets/vendor/ckeditor4/plugins/autoembed/lang/ar.js
vendored
Normal file
1
public/assets/vendor/ckeditor4/plugins/autoembed/lang/ar.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
CKEDITOR.plugins.setLang("autoembed","ar",{embeddingInProgress:"جاري اضافة الرابط كمحتوى ",embeddingFailed:"لم نتمكن من اضافة الرابط كمحتوى"});
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user