mirror of https://github.com/ColorlibHQ/AdminLTE
Run bower update
parent
78a4398dde
commit
8ee5087b13
|
@ -18,12 +18,12 @@
|
|||
"/server.js"
|
||||
],
|
||||
"homepage": "https://github.com/itsjavi/bootstrap-colorpicker",
|
||||
"version": "2.5.1",
|
||||
"_release": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"_release": "2.5.2",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "2.5.1",
|
||||
"commit": "db978b4d8c3436cdaed6e3a1a065f9f47bb686b1"
|
||||
"tag": "2.5.2",
|
||||
"commit": "d56d0d3d5bee59904d48bce3c47a0029741e10e6"
|
||||
},
|
||||
"_source": "https://github.com/itsjavi/bootstrap-colorpicker.git",
|
||||
"_target": "^2.5.1",
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
# Contributing
|
||||
|
||||
## Support
|
||||
|
||||
The issue tracker is not the place for support requests. If you get stuck with bootstrap-colorpicker, it's very likely
|
||||
that the fine folks at [StackOverflow](http://stackoverflow.com/) will be able to help you; simply describe the problem
|
||||
you're having and provide them a link to the repo (so they know what code you're using).
|
||||
|
||||
|
||||
## Issues
|
||||
For feature requests, suggestions or ideas, add `[SUGGESTION]` before the title of the issue, for anything else follow
|
||||
the following guidelines.
|
||||
|
||||
### Steps to submit an issue
|
||||
- Try to reproduce your problem in a separated environment, like in JSFiddle,
|
||||
[here is a template for it](http://jsfiddle.net/itsjavi/0vopxm13/), that you can fork in the same page.
|
||||
It already includes the required JS and CSS files.
|
||||
- Before posting your issue, consider adding this information:
|
||||
* Expected behaviour: what should happen?
|
||||
* Actual behaviour: what happens instead?
|
||||
* Your context: Where it happens? In which browser and version (if applicable)?
|
||||
* Plugin version (and/or commit reference).
|
||||
* jQuery version you use and list of all other plugins/scripts you are using with this one and may cause some conflict.
|
||||
* A link to your JSFiddle (or similar tool) demo where you reproduced the problem (if applicable).
|
||||
|
||||
## Pull Requests
|
||||
|
||||
Patches and new features are welcome!
|
||||
|
||||
- Prerequisites: having `node`, `npm`, `bower` and `grunt` installed in your machine.
|
||||
- After a fresh clone for your fork, you need to run `npm install && bower install` inside the project's root folder.
|
||||
- For checking your changes in the browser you can execute `node serve` and navigate to http://localhost:5000/
|
||||
- Before any commit run always `grunt` inside the project's root folder, to update the dist files
|
||||
(never modify them manually).
|
||||
- Do not change the plugin coding style.
|
||||
- Check that the index.html demos aren't broken (modify if necessary).
|
||||
- Test your code at least in Chrome, Firefox and IE >= 10 / Edge.
|
||||
- Any new feature should come with updated docs if applicable (a demonstration).
|
||||
- Generate the `/dist` files executing `grunt` before your Pull Request.
|
||||
- Push to your fork and submit the pull request.
|
|
@ -1,21 +1,21 @@
|
|||
# Bootstrap Colorpicker 2
|
||||
|
||||
Fancy and customizable color picker plugin for Twitter Bootstrap
|
||||
Simple and customizable colorpicker component for Twitter Bootstrap.
|
||||
|
||||
[![Build Status](https://travis-ci.org/itsjavi/bootstrap-colorpicker.svg?branch=master)](https://travis-ci.org/itsjavi/bootstrap-colorpicker)
|
||||
[![Build Status](https://api.travis-ci.org/farbelous/bootstrap-colorpicker.svg?branch=v2)](https://travis-ci.org/farbelous/bootstrap-colorpicker)
|
||||
|
||||
## Installation
|
||||
For downloading the source code, you have many choices:
|
||||
|
||||
- Downloading the [latest source code ZIP file](https://github.com/itsjavi/bootstrap-colorpicker/archive/master.zip)
|
||||
- Cloning the source code: `git clone https://github.com/itsjavi/bootstrap-colorpicker.git`
|
||||
- Installing via Bower: `bower install bootstrap-colorpicker`
|
||||
- Downloading the [latest v2 source code ZIP file](https://github.com/farbelous/bootstrap-colorpicker/archive/v2.zip)
|
||||
- Cloning the source code: `git clone https://github.com/farbelous/bootstrap-colorpicker.git`
|
||||
- Installing via NPM: `npm install bootstrap-colorpicker`
|
||||
- Installing via Yarn: `yarn add bootstrap-colorpicker`
|
||||
- Installing via Composer: `composer require itsjavi/bootstrap-colorpicker`
|
||||
|
||||
## Getting started
|
||||
- For using the plugin you will only need the files under the `dist` folder
|
||||
- You can read the [documentation here](https://itsjavi.com/bootstrap-colorpicker/)
|
||||
- [Documentation and demos](https://farbelous.github.io/bootstrap-colorpicker/v2/)
|
||||
|
||||
## Contributing and reporting issues
|
||||
If you want to contribute to the source code or report issues and suggestions, please read the [CONTRIBUTING.md](CONTRIBUTING.md) guidelines first. Some steps are mandatory in order to accept a Pull Request.
|
||||
|
|
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 +1 @@
|
|||
{"version":3,"sources":["src/less/colorpicker.less"],"names":[],"mappings":";;;;;;;;AAqBA,wBACE,MAAA,MACA,OAAA,MAXA,iBAAsB,iDAatB,OAAA,UACA,MAAA,KACA,0BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAfF,sBAAA,IACA,mBAAA,IACA,cAAA,IAeE,SAAA,SACA,IAAA,EACA,KAAA,EACA,OAAA,KAAA,EAAA,EAAA,KACA,4BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAzBJ,sBAAA,IACA,mBAAA,IACA,cAAA,IA8BF,mBADA,iBAEE,MAAA,KACA,OAAA,MACA,MAAA,KACA,OAAA,WACA,YAAA,IACA,cAAA,IAIiB,qBADF,mBAEf,QAAA,MACA,OAAA,IACA,WAAA,KACA,WAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,KACA,WAAA,KAGF,iBA1DE,iBAAsB,0CA8DxB,mBA9DE,iBAAsB,4CAgEtB,QAAA,KAKF,mBADA,iBADA,wBAGE,gBAAA,QAGF,aACE,QAAA,IACA,UAAA,MACA,WAAA,IAxEA,sBAAA,IACA,mBAAA,IACA,cAAA,IAwEA,QAAA,KAIU,mBADA,oBAEV,QAAA,MACA,QAAA,GACA,YAAA,EAGU,mBACV,MAAA,KAGU,oBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,oBAAA,eACA,SAAA,SACA,IAAA,KACA,KAAA,IAGU,mBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,KACA,KAAA,IAGW,iBACX,SAAA,SAGU,oCACV,UAAA,MAGkC,uDAClC,QAAA,MAGF,mBACE,OAAA,KACA,WAAA,IACA,MAAA,KAlIA,iBAAsB,4CAoItB,oBAAA,EAAA,KAGiB,uBACjB,OAAA,KAGF,uBACE,QAAA,KACA,OAAA,KACA,WAAA,IACA,MAAA,KAGqB,yBACrB,OAAA,QACA,MAAA,KACA,OAAA,KACA,MAAA,KAGuB,2BACvB,YAAA,IAI2B,+BADW,0CAEtC,QAAA,aACA,OAAA,QACA,OAAA,KACA,eAAA,SACA,MAAA,KAGU,gCACV,SAAA,SACA,QAAA,aACA,MAAA,KACA,QAAA,KAGU,oCACV,MAAA,MACA,UAAA,MACA,OAAA,KAGkC,4DAClC,cAAA,IAGkC,uDAClC,MAAA,MAIkC,uDADA,qDAElC,MAAA,MACA,OAAA,KACA,MAAA,KACA,OAAA,WACA,YAAA,EACA,cAAA,IAIqD,yDADF,uDAEnD,QAAA,MACA,OAAA,KACA,WAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,IACA,OAAA,KACA,WAAA,EAGkC,qDAlNlC,iBAAsB,qDAsNY,uDAtNlC,iBAAsB,uDA0NN,0BAChB,KAAA,KACA,MAAA,IAGgB,yBAChB,KAAA,KACA,MAAA,IAGmB,6BACnB,aAAA,EACA,YAAA,EAGmB,4BACnB,aAAA,EACA,YAAA,EAQC,uCAAA,qCAAA,4CAAA,2CAAA,iCACC,QAAA,MASD,sCAAA,oCAAA,2CAAA,0CAAA,gCACC,QAAA,KAIe,wCACjB,QAAA"}
|
||||
{"version":3,"sources":["src/less/colorpicker.less"],"names":[],"mappings":";;;;;;;;AAoBA,wBACE,MAAA,MACA,OAAA,MAXA,iBAAsB,g7KAatB,OAAA,UACA,MAAA,KACA,0BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAfF,sBAAA,IACA,mBAAA,IACA,cAAA,IAeE,SAAA,SACA,IAAA,EACA,KAAA,EACA,OAAA,KAAA,EAAA,EAAA,KACA,4BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAzBJ,sBAAA,IACA,mBAAA,IACA,cAAA,IA8BF,mBADA,iBAEE,MAAA,KACA,OAAA,MACA,MAAA,KACA,OAAA,WACA,YAAA,IACA,cAAA,IAIiB,qBADF,mBAEf,QAAA,MACA,OAAA,IACA,WAAA,KACA,WAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,KACA,WAAA,KAGF,iBA1DE,iBAAsB,4rBA8DxB,mBA9DE,iBAAsB,wqBAgEtB,QAAA,KAKF,mBADA,iBADA,wBAGE,gBAAA,QAGF,aACE,QAAA,IACA,UAAA,MACA,WAAA,IAxEA,sBAAA,IACA,mBAAA,IACA,cAAA,IAwEA,QAAA,KAIU,mBADA,oBAEV,QAAA,MACA,QAAA,GACA,YAAA,EAGU,mBACV,MAAA,KAGU,oBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,oBAAA,eACA,SAAA,SACA,IAAA,KACA,KAAA,IAGU,mBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,KACA,KAAA,IAGW,iBACX,SAAA,SAGU,oCACV,UAAA,MAGkC,uDAClC,QAAA,MAGF,mBACE,OAAA,KACA,WAAA,IACA,MAAA,KAlIA,iBAAsB,wqBAoItB,oBAAA,EAAA,KAGiB,uBACjB,OAAA,KAGF,uBACE,QAAA,KACA,OAAA,KACA,WAAA,IACA,MAAA,KAGqB,yBACrB,OAAA,QACA,MAAA,KACA,OAAA,KACA,MAAA,KAGuB,2BACvB,YAAA,IAI2B,+BADW,0CAEtC,QAAA,aACA,OAAA,QACA,OAAA,KACA,eAAA,SACA,MAAA,KAGU,gCACV,SAAA,SACA,QAAA,aACA,MAAA,KACA,QAAA,KAGU,oCACV,MAAA,MACA,UAAA,MACA,OAAA,KAGkC,4DAClC,cAAA,IAGkC,uDAClC,MAAA,MAIkC,uDADA,qDAElC,MAAA,MACA,OAAA,KACA,MAAA,KACA,OAAA,WACA,YAAA,EACA,cAAA,IAIqD,yDADF,uDAEnD,QAAA,MACA,OAAA,KACA,WAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,IACA,OAAA,KACA,WAAA,EAGkC,qDAlNlC,iBAAsB,4pBAsNY,uDAtNlC,iBAAsB,owBA0NN,0BAChB,KAAA,KACA,MAAA,IAGgB,yBAChB,KAAA,KACA,MAAA,IAGmB,6BACnB,aAAA,EACA,YAAA,EAGmB,4BACnB,aAAA,EACA,YAAA,EAQC,uCAAA,qCAAA,4CAAA,2CAAA,iCACC,QAAA,MASD,sCAAA,oCAAA,2CAAA,0CAAA,gCACC,QAAA,KAIe,wCACjB,QAAA"}
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Bootstrap Colorpicker v2.5.1
|
||||
* Bootstrap Colorpicker v2.5.2
|
||||
* https://itsjavi.com/bootstrap-colorpicker/
|
||||
*
|
||||
* Originally written by (c) 2012 Stefan Petre
|
||||
|
@ -38,14 +38,9 @@
|
|||
val, predefinedColors, fallbackColor, fallbackFormat, hexNumberSignPrefix) {
|
||||
this.fallbackValue = fallbackColor ?
|
||||
(
|
||||
fallbackColor && (typeof fallbackColor.h !== 'undefined') ?
|
||||
fallbackColor :
|
||||
this.value = {
|
||||
h: 0,
|
||||
s: 0,
|
||||
b: 0,
|
||||
a: 1
|
||||
}
|
||||
(typeof fallbackColor === 'string') ?
|
||||
this.parse(fallbackColor) :
|
||||
fallbackColor
|
||||
) :
|
||||
null;
|
||||
|
||||
|
@ -345,21 +340,26 @@
|
|||
a: a
|
||||
};
|
||||
},
|
||||
toHex: function(h, s, b, a) {
|
||||
if (arguments.length === 0) {
|
||||
toHex: function(ignoreFormat, h, s, b, a) {
|
||||
if (arguments.length <= 1) {
|
||||
h = this.value.h;
|
||||
s = this.value.s;
|
||||
b = this.value.b;
|
||||
a = this.value.a;
|
||||
}
|
||||
|
||||
var prefix = '#';
|
||||
var rgb = this.toRGB(h, s, b, a);
|
||||
|
||||
if (this.rgbaIsTransparent(rgb)) {
|
||||
return 'transparent';
|
||||
}
|
||||
|
||||
var hexStr = (this.hexNumberSignPrefix ? '#' : '') + (
|
||||
if (!ignoreFormat) {
|
||||
prefix = (this.hexNumberSignPrefix ? '#' : '');
|
||||
}
|
||||
|
||||
var hexStr = prefix + (
|
||||
(1 << 24) +
|
||||
(parseInt(rgb.r) << 16) +
|
||||
(parseInt(rgb.g) << 8) +
|
||||
|
@ -397,10 +397,10 @@
|
|||
};
|
||||
},
|
||||
toAlias: function(r, g, b, a) {
|
||||
var c, rgb = (arguments.length === 0) ? this.toHex() : this.toHex(r, g, b, a);
|
||||
var c, rgb = (arguments.length === 0) ? this.toHex(true) : this.toHex(true, r, g, b, a);
|
||||
|
||||
// support predef. colors in non-hex format too, as defined in the alias itself
|
||||
var original = this.origFormat === 'alias' ? rgb : this.toString(this.origFormat, false);
|
||||
var original = this.origFormat === 'alias' ? rgb : this.toString(false, this.origFormat);
|
||||
|
||||
for (var alias in this.colors) {
|
||||
c = this.colors[alias].toLowerCase().trim();
|
||||
|
@ -475,6 +475,9 @@
|
|||
* @returns {Object} Object containing h,s,b,a,format properties or FALSE if failed to parse
|
||||
*/
|
||||
parse: function(strVal) {
|
||||
if (typeof strVal !== 'string') {
|
||||
return this.fallbackValue;
|
||||
}
|
||||
if (arguments.length === 0) {
|
||||
return false;
|
||||
}
|
||||
|
@ -525,9 +528,10 @@
|
|||
*
|
||||
* @param {string} [format] (default: rgba)
|
||||
* @param {boolean} [translateAlias] Return real color for pre-defined (non-standard) aliases (default: false)
|
||||
* @param {boolean} [forceRawValue] Forces hashtag prefix when getting hex color (default: false)
|
||||
* @returns {String}
|
||||
*/
|
||||
toString: function(format, translateAlias) {
|
||||
toString: function(forceRawValue, format, translateAlias) {
|
||||
format = format || this.origFormat || this.fallbackFormat;
|
||||
translateAlias = translateAlias || false;
|
||||
|
||||
|
@ -563,7 +567,7 @@
|
|||
break;
|
||||
case 'hex':
|
||||
{
|
||||
return this.toHex();
|
||||
return this.toHex(forceRawValue);
|
||||
}
|
||||
break;
|
||||
case 'alias':
|
||||
|
@ -571,7 +575,7 @@
|
|||
c = this.toAlias();
|
||||
|
||||
if (c === false) {
|
||||
return this.toString(this.getValidFallbackFormat());
|
||||
return this.toString(forceRawValue, this.getValidFallbackFormat());
|
||||
}
|
||||
|
||||
if (translateAlias && !(c in Color.webColors) && (c in this.predefinedColors)) {
|
||||
|
@ -787,6 +791,8 @@
|
|||
this.updateData(this.color);
|
||||
}
|
||||
|
||||
this.disabled = false;
|
||||
|
||||
// Setup picker
|
||||
var $picker = this.picker = $(this.options.template);
|
||||
if (this.options.customClass) {
|
||||
|
@ -975,12 +981,12 @@
|
|||
});
|
||||
},
|
||||
updateData: function(val) {
|
||||
val = val || this.color.toString(this.format, false);
|
||||
val = val || this.color.toString(false, this.format);
|
||||
this.element.data('color', val);
|
||||
return val;
|
||||
},
|
||||
updateInput: function(val) {
|
||||
val = val || this.color.toString(this.format, false);
|
||||
val = val || this.color.toString(false, this.format);
|
||||
if (this.input !== false) {
|
||||
this.input.prop('value', val);
|
||||
this.input.trigger('change');
|
||||
|
@ -1011,13 +1017,13 @@
|
|||
});
|
||||
|
||||
this.picker.find('.colorpicker-saturation')
|
||||
.css('backgroundColor', (this.options.hexNumberSignPrefix ? '' : '#') + this.color.toHex(this.color.value.h, 1, 1, 1));
|
||||
.css('backgroundColor', this.color.toHex(true, this.color.value.h, 1, 1, 1));
|
||||
|
||||
this.picker.find('.colorpicker-alpha')
|
||||
.css('backgroundColor', (this.options.hexNumberSignPrefix ? '' : '#') + this.color.toHex());
|
||||
.css('backgroundColor', this.color.toHex(true));
|
||||
|
||||
this.picker.find('.colorpicker-color, .colorpicker-color div')
|
||||
.css('backgroundColor', this.color.toString(this.format, true));
|
||||
.css('backgroundColor', this.color.toString(true, this.format));
|
||||
|
||||
return val;
|
||||
},
|
||||
|
@ -1034,16 +1040,16 @@
|
|||
var icn = this.component.find('i').eq(0);
|
||||
if (icn.length > 0) {
|
||||
icn.css({
|
||||
'backgroundColor': color.toString(this.format, true)
|
||||
'backgroundColor': color.toString(true, this.format)
|
||||
});
|
||||
} else {
|
||||
this.component.css({
|
||||
'backgroundColor': color.toString(this.format, true)
|
||||
'backgroundColor': color.toString(true, this.format)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return color.toString(this.format, false);
|
||||
return color.toString(false, this.format);
|
||||
},
|
||||
update: function(force) {
|
||||
var val;
|
||||
|
@ -1099,34 +1105,31 @@
|
|||
return (this.input !== false);
|
||||
},
|
||||
isDisabled: function() {
|
||||
if (this.hasInput()) {
|
||||
return (this.input.prop('disabled') === true);
|
||||
}
|
||||
return false;
|
||||
return this.disabled;
|
||||
},
|
||||
disable: function() {
|
||||
if (this.hasInput()) {
|
||||
this.input.prop('disabled', true);
|
||||
}
|
||||
this.disabled = true;
|
||||
this.element.trigger({
|
||||
type: 'disable',
|
||||
color: this.color,
|
||||
value: this.getValue()
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
enable: function() {
|
||||
if (this.hasInput()) {
|
||||
this.input.prop('disabled', false);
|
||||
}
|
||||
this.disabled = false;
|
||||
this.element.trigger({
|
||||
type: 'enable',
|
||||
color: this.color,
|
||||
value: this.getValue()
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
currentSlider: null,
|
||||
mousePointer: {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,41 +2,18 @@
|
|||
<article class="col-md-12">
|
||||
<hr>
|
||||
<div class="social">
|
||||
<a href="https://github.com/itsjavi/bootstrap-colorpicker/" target="_blank"
|
||||
class="btn btn-default btn-sm"><span class="octicon octicon-mark-github"></span> Source code</a>
|
||||
<a href="https://github.com/itsjavi/bootstrap-colorpicker/archive/master.zip" target="_blank"
|
||||
class="btn btn-success btn-sm"><i class="glyphicon glyphicon-download-alt"></i> Download latest</a>
|
||||
|
||||
<div class="share-btn share-btn-twitter">
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-size="large" data-related="itsjaviaguilar"
|
||||
data-hashtags="bootstrap">Tweet</a>
|
||||
<script>!function (d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
|
||||
if (!d.getElementById(id)) {
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = p + '://platform.twitter.com/widgets.js';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}
|
||||
}(document, 'script', 'twitter-wjs');</script>
|
||||
</div>
|
||||
|
||||
<div class="share-btn share-btn-google-plus">
|
||||
<!-- Place this tag where you want the +1 button to render. -->
|
||||
<div class="g-plusone" data-size="large"></div>
|
||||
|
||||
<!-- Place this tag after the last +1 button tag. -->
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
var po = document.createElement('script');
|
||||
po.type = 'text/javascript';
|
||||
po.async = true;
|
||||
po.src = 'https://apis.google.com/js/plusone.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(po, s);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
<a href="https://github.com/farbelous/bootstrap-colorpicker/" target="_blank"
|
||||
class="btn btn-default btn-sm"><span class="octicon octicon-mark-github"></span>
|
||||
Source code
|
||||
</a>
|
||||
<a href="https://github.com/farbelous/bootstrap-colorpicker/releases" target="_blank"
|
||||
class="btn btn-default btn-sm">
|
||||
Latest Releases
|
||||
</a>
|
||||
<a href="https://github.com/farbelous/bootstrap-colorpicker/archive/2.5.2.zip" target="_blank"
|
||||
class="btn btn-success btn-sm"><i class="glyphicon glyphicon-download-alt"></i>
|
||||
Download v2.5.2
|
||||
</a>
|
||||
</div>
|
||||
<hr>
|
||||
</article>
|
||||
|
|
|
@ -6,6 +6,13 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Colorpicker for Twitter Bootstrap</title>
|
||||
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-85082661-5"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date()); gtag('config', 'UA-85082661-5');
|
||||
</script>
|
||||
|
||||
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css" rel="stylesheet">
|
||||
<link href="dist/css/bootstrap-colorpicker.min.css" rel="stylesheet">
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
href="https://twitter.com/stefanpetre/" target="_blank">Stefan Petre</a> and maintained by
|
||||
<a href="https://itsjavi.com/" target="_blank">Javi Aguilar</a> and the Github community.
|
||||
</p>
|
||||
<p class="alert alert-warning">
|
||||
<b>NOTE</b> That this is an older version of the library documentation, please check
|
||||
the project <a href="https://github.com/farbelous/bootstrap-colorpicker/blob/master/README.md">README</a>
|
||||
to find the documentation for the newer and latest versions.
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
{{> social }}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
|||
var Color = require("../../src/js/colorpicker-color.js");
|
||||
|
||||
it("should return color in raw format", function(){
|
||||
var color = new Color('aabbcc');
|
||||
expect(color.toHex(true)).toEqual("#aabbcc");
|
||||
});
|
||||
|
||||
it("should return color formatted", function(){
|
||||
var color = new Color('aabbcc');
|
||||
expect(color.toHex()).toEqual("aabbcc");
|
||||
});
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"spec_dir": "spec",
|
||||
"spec_files": [
|
||||
"**/*[sS]pec.js"
|
||||
],
|
||||
"helpers": [
|
||||
"helpers/**/*.js"
|
||||
],
|
||||
"stopSpecOnExpectationFailure": false,
|
||||
"random": false
|
||||
}
|
|
@ -1,3 +1,10 @@
|
|||
/* test-code */
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
var jsdom = require("jsdom");
|
||||
var JSDOM = jsdom.JSDOM;
|
||||
var $ = require('jquery')((new JSDOM('<!DOCTYPE html><p>Hello world</p>')).window);
|
||||
}
|
||||
/* end-test-code */
|
||||
/**
|
||||
* Color manipulation helper class
|
||||
*
|
||||
|
@ -12,14 +19,9 @@ var Color = function(
|
|||
val, predefinedColors, fallbackColor, fallbackFormat, hexNumberSignPrefix) {
|
||||
this.fallbackValue = fallbackColor ?
|
||||
(
|
||||
fallbackColor && (typeof fallbackColor.h !== 'undefined') ?
|
||||
fallbackColor :
|
||||
this.value = {
|
||||
h: 0,
|
||||
s: 0,
|
||||
b: 0,
|
||||
a: 1
|
||||
}
|
||||
(typeof fallbackColor === 'string') ?
|
||||
this.parse(fallbackColor) :
|
||||
fallbackColor
|
||||
) :
|
||||
null;
|
||||
|
||||
|
@ -319,21 +321,26 @@ Color.prototype = {
|
|||
a: a
|
||||
};
|
||||
},
|
||||
toHex: function(h, s, b, a) {
|
||||
if (arguments.length === 0) {
|
||||
toHex: function(ignoreFormat, h, s, b, a) {
|
||||
if (arguments.length <= 1) {
|
||||
h = this.value.h;
|
||||
s = this.value.s;
|
||||
b = this.value.b;
|
||||
a = this.value.a;
|
||||
}
|
||||
|
||||
var prefix = '#';
|
||||
var rgb = this.toRGB(h, s, b, a);
|
||||
|
||||
if (this.rgbaIsTransparent(rgb)) {
|
||||
return 'transparent';
|
||||
}
|
||||
|
||||
var hexStr = (this.hexNumberSignPrefix ? '#' : '') + (
|
||||
if (!ignoreFormat) {
|
||||
prefix = (this.hexNumberSignPrefix ? '#' : '');
|
||||
}
|
||||
|
||||
var hexStr = prefix + (
|
||||
(1 << 24) +
|
||||
(parseInt(rgb.r) << 16) +
|
||||
(parseInt(rgb.g) << 8) +
|
||||
|
@ -371,10 +378,10 @@ Color.prototype = {
|
|||
};
|
||||
},
|
||||
toAlias: function(r, g, b, a) {
|
||||
var c, rgb = (arguments.length === 0) ? this.toHex() : this.toHex(r, g, b, a);
|
||||
var c, rgb = (arguments.length === 0) ? this.toHex(true) : this.toHex(true, r, g, b, a);
|
||||
|
||||
// support predef. colors in non-hex format too, as defined in the alias itself
|
||||
var original = this.origFormat === 'alias' ? rgb : this.toString(this.origFormat, false);
|
||||
var original = this.origFormat === 'alias' ? rgb : this.toString(false, this.origFormat);
|
||||
|
||||
for (var alias in this.colors) {
|
||||
c = this.colors[alias].toLowerCase().trim();
|
||||
|
@ -449,6 +456,9 @@ Color.prototype = {
|
|||
* @returns {Object} Object containing h,s,b,a,format properties or FALSE if failed to parse
|
||||
*/
|
||||
parse: function(strVal) {
|
||||
if (typeof strVal !== 'string') {
|
||||
return this.fallbackValue;
|
||||
}
|
||||
if (arguments.length === 0) {
|
||||
return false;
|
||||
}
|
||||
|
@ -499,9 +509,10 @@ Color.prototype = {
|
|||
*
|
||||
* @param {string} [format] (default: rgba)
|
||||
* @param {boolean} [translateAlias] Return real color for pre-defined (non-standard) aliases (default: false)
|
||||
* @param {boolean} [forceRawValue] Forces hashtag prefix when getting hex color (default: false)
|
||||
* @returns {String}
|
||||
*/
|
||||
toString: function(format, translateAlias) {
|
||||
toString: function(forceRawValue, format, translateAlias) {
|
||||
format = format || this.origFormat || this.fallbackFormat;
|
||||
translateAlias = translateAlias || false;
|
||||
|
||||
|
@ -537,7 +548,7 @@ Color.prototype = {
|
|||
break;
|
||||
case 'hex':
|
||||
{
|
||||
return this.toHex();
|
||||
return this.toHex(forceRawValue);
|
||||
}
|
||||
break;
|
||||
case 'alias':
|
||||
|
@ -545,7 +556,7 @@ Color.prototype = {
|
|||
c = this.toAlias();
|
||||
|
||||
if (c === false) {
|
||||
return this.toString(this.getValidFallbackFormat());
|
||||
return this.toString(forceRawValue, this.getValidFallbackFormat());
|
||||
}
|
||||
|
||||
if (translateAlias && !(c in Color.webColors) && (c in this.predefinedColors)) {
|
||||
|
@ -660,3 +671,6 @@ Color.prototype = {
|
|||
return false;
|
||||
}
|
||||
};
|
||||
/* test-code */
|
||||
module.exports = Color;
|
||||
/* end-test-code */
|
||||
|
|
|
@ -32,6 +32,8 @@ var Colorpicker = function(element, options) {
|
|||
this.updateData(this.color);
|
||||
}
|
||||
|
||||
this.disabled = false;
|
||||
|
||||
// Setup picker
|
||||
var $picker = this.picker = $(this.options.template);
|
||||
if (this.options.customClass) {
|
||||
|
@ -220,12 +222,12 @@ Colorpicker.prototype = {
|
|||
});
|
||||
},
|
||||
updateData: function(val) {
|
||||
val = val || this.color.toString(this.format, false);
|
||||
val = val || this.color.toString(false, this.format);
|
||||
this.element.data('color', val);
|
||||
return val;
|
||||
},
|
||||
updateInput: function(val) {
|
||||
val = val || this.color.toString(this.format, false);
|
||||
val = val || this.color.toString(false, this.format);
|
||||
if (this.input !== false) {
|
||||
this.input.prop('value', val);
|
||||
this.input.trigger('change');
|
||||
|
@ -256,13 +258,13 @@ Colorpicker.prototype = {
|
|||
});
|
||||
|
||||
this.picker.find('.colorpicker-saturation')
|
||||
.css('backgroundColor', (this.options.hexNumberSignPrefix ? '' : '#') + this.color.toHex(this.color.value.h, 1, 1, 1));
|
||||
.css('backgroundColor', this.color.toHex(true, this.color.value.h, 1, 1, 1));
|
||||
|
||||
this.picker.find('.colorpicker-alpha')
|
||||
.css('backgroundColor', (this.options.hexNumberSignPrefix ? '' : '#') + this.color.toHex());
|
||||
.css('backgroundColor', this.color.toHex(true));
|
||||
|
||||
this.picker.find('.colorpicker-color, .colorpicker-color div')
|
||||
.css('backgroundColor', this.color.toString(this.format, true));
|
||||
.css('backgroundColor', this.color.toString(true, this.format));
|
||||
|
||||
return val;
|
||||
},
|
||||
|
@ -279,16 +281,16 @@ Colorpicker.prototype = {
|
|||
var icn = this.component.find('i').eq(0);
|
||||
if (icn.length > 0) {
|
||||
icn.css({
|
||||
'backgroundColor': color.toString(this.format, true)
|
||||
'backgroundColor': color.toString(true, this.format)
|
||||
});
|
||||
} else {
|
||||
this.component.css({
|
||||
'backgroundColor': color.toString(this.format, true)
|
||||
'backgroundColor': color.toString(true, this.format)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return color.toString(this.format, false);
|
||||
return color.toString(false, this.format);
|
||||
},
|
||||
update: function(force) {
|
||||
var val;
|
||||
|
@ -344,34 +346,31 @@ Colorpicker.prototype = {
|
|||
return (this.input !== false);
|
||||
},
|
||||
isDisabled: function() {
|
||||
if (this.hasInput()) {
|
||||
return (this.input.prop('disabled') === true);
|
||||
}
|
||||
return false;
|
||||
return this.disabled;
|
||||
},
|
||||
disable: function() {
|
||||
if (this.hasInput()) {
|
||||
this.input.prop('disabled', true);
|
||||
}
|
||||
this.disabled = true;
|
||||
this.element.trigger({
|
||||
type: 'disable',
|
||||
color: this.color,
|
||||
value: this.getValue()
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
enable: function() {
|
||||
if (this.hasInput()) {
|
||||
this.input.prop('disabled', false);
|
||||
}
|
||||
this.disabled = false;
|
||||
this.element.trigger({
|
||||
type: 'enable',
|
||||
color: this.color,
|
||||
value: this.getValue()
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
currentSlider: null,
|
||||
mousePointer: {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Bootstrap Colorpicker v2.5.1
|
||||
* Bootstrap Colorpicker v2.5.2
|
||||
* https://itsjavi.com/bootstrap-colorpicker/
|
||||
*
|
||||
* Originally written by (c) 2012 Stefan Petre
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -10,12 +10,12 @@
|
|||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/eternicode/bootstrap-datepicker",
|
||||
"version": "1.7.1",
|
||||
"_release": "1.7.1",
|
||||
"version": "1.8.0",
|
||||
"_release": "1.8.0",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.7.1",
|
||||
"commit": "9008cc328620c1695a0c95d036e57d356fca5c03"
|
||||
"tag": "v1.8.0",
|
||||
"commit": "0d32bc5d91da11d9a3587537c3c36ce7ee815c94"
|
||||
},
|
||||
"_source": "https://github.com/eternicode/bootstrap-datepicker.git",
|
||||
"_target": "^1.7.0",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
@ -676,7 +676,6 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {
|
|||
min-width: 16px;
|
||||
padding: 4px 5px;
|
||||
line-height: 1.42857143;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
border-width: 1px 0;
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
@ -676,7 +676,6 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.focus {
|
|||
min-width: 16px;
|
||||
padding: 4px 5px;
|
||||
line-height: 1.42857143;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
border-width: 1px 0;
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* Datepicker for Bootstrap v1.7.1 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
* Datepicker for Bootstrap v1.8.0 (https://github.com/uxsolutions/bootstrap-datepicker)
|
||||
*
|
||||
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
||||
*/
|
||||
|
||||
(function(factory){
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["jquery"], factory);
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
|
@ -1141,10 +1141,6 @@
|
|||
nextIsDisabled,
|
||||
factor = 1;
|
||||
switch (this.viewMode){
|
||||
case 0:
|
||||
prevIsDisabled = year <= startYear && month <= startMonth;
|
||||
nextIsDisabled = year >= endYear && month >= endMonth;
|
||||
break;
|
||||
case 4:
|
||||
factor *= 10;
|
||||
/* falls through */
|
||||
|
@ -1155,8 +1151,12 @@
|
|||
factor *= 10;
|
||||
/* falls through */
|
||||
case 1:
|
||||
prevIsDisabled = Math.floor(year / factor) * factor <= startYear;
|
||||
nextIsDisabled = Math.floor(year / factor) * factor + factor >= endYear;
|
||||
prevIsDisabled = Math.floor(year / factor) * factor < startYear;
|
||||
nextIsDisabled = Math.floor(year / factor) * factor + factor > endYear;
|
||||
break;
|
||||
case 0:
|
||||
prevIsDisabled = year <= startYear && month < startMonth;
|
||||
nextIsDisabled = year >= endYear && month > endMonth;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1532,6 +1532,11 @@
|
|||
p.setRange(range);
|
||||
});
|
||||
},
|
||||
clearDates: function(){
|
||||
$.each(this.pickers, function(i, p){
|
||||
p.clearDates();
|
||||
});
|
||||
},
|
||||
dateUpdated: function(e){
|
||||
// `this.updating` is a workaround for preventing infinite recursion
|
||||
// between `changeDate` triggering and `setUTCDate` calling. Until
|
||||
|
@ -1998,7 +2003,7 @@
|
|||
|
||||
/* DATEPICKER VERSION
|
||||
* =================== */
|
||||
$.fn.datepicker.version = '1.7.1';
|
||||
$.fn.datepicker.version = '1.8.0';
|
||||
|
||||
$.fn.datepicker.deprecated = function(msg){
|
||||
var console = window.console;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
!function(a){a.fn.datepicker.dates["en-CA"]={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",monthsTitle:"Months",clear:"Clear",weekStart:0,format:"yyyy-mm-dd"}}(jQuery);
|
||||
!function(a){a.fn.datepicker.dates["en-CA"]={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",monthsTitle:"Months",clear:"Clear",weekStart:0,format:"yyyy-mm-dd"},a.fn.datepicker.deprecated("This filename doesn't follow the convention, use bootstrap-datepicker.en-CA.js instead.")}(jQuery);
|
|
@ -1 +1 @@
|
|||
!function(a){a.fn.datepicker.dates.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],daysShort:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob"],daysMin:["Ne","Po","Út","St","Čt","Pá","So"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čnc","Srp","Zář","Říj","Lis","Pro"],today:"Dnes",clear:"Vymazat",monthsTitle:"Měsíc",weekStart:1,format:"dd.m.yyyy"}}(jQuery);
|
||||
!function(a){a.fn.datepicker.dates.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],daysShort:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob"],daysMin:["Ne","Po","Út","St","Čt","Pá","So"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čnc","Srp","Zář","Říj","Lis","Pro"],today:"Dnes",clear:"Vymazat",monthsTitle:"Měsíc",weekStart:1,format:"dd.mm.yyyy"}}(jQuery);
|
|
@ -1 +1 @@
|
|||
!function(a){a.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag",weekStart:1,clear:"Nulstil",format:"dd/mm/yyyy"}}(jQuery);
|
||||
!function(a){a.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag",weekStart:1,clear:"Nulstil",format:"dd/mm/yyyy",monthsTitle:"Måneder"}}(jQuery);
|
1
bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.en-CA.min.js
vendored
Normal file
1
bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.en-CA.min.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!function(a){a.fn.datepicker.dates["en-CA"]={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",monthsTitle:"Months",clear:"Clear",weekStart:0,format:"yyyy-mm-dd"}}(jQuery);
|
|
@ -1 +1 @@
|
|||
!function(a){a.fn.datepicker.dates.lv={days:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"],daysShort:["Sv","P","O","T","C","Pk","S"],daysMin:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],months:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],today:"Šodien",clear:"Nodzēst",weekStart:1}}(jQuery);
|
||||
!function(a){a.fn.datepicker.dates.lv={days:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"],daysShort:["Sv","P","O","T","C","Pk","S"],daysMin:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],months:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],monthsTitle:"Mēneši",today:"Šodien",clear:"Nodzēst",weekStart:1}}(jQuery);
|
|
@ -1 +0,0 @@
|
|||
!function(a){a.fn.datepicker.dates.nb={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I Dag",format:"dd.mm.yyyy"}}(jQuery);
|
|
@ -1 +1 @@
|
|||
!function(a){a.fn.datepicker.dates.no={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I dag",clear:"Nullstill",weekStart:1,format:"dd.mm.yyyy"}}(jQuery);
|
||||
!function(a){a.fn.datepicker.dates.no={days:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],daysShort:["søn","man","tir","ons","tor","fre","lør"],daysMin:["sø","ma","ti","on","to","fr","lø"],months:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","vovember","desember"],monthsShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],today:"i dag",monthsTitle:"Måneder",clear:"Nullstill",weekStart:1,format:"dd.mm.yyyy"}}(jQuery);
|
|
@ -1 +1 @@
|
|||
!function(a){a.fn.datepicker.dates.sv={days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],daysShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],daysMin:["Sö","Må","Ti","On","To","Fr","Lö"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"Idag",format:"yyyy-mm-dd",weekStart:1,clear:"Rensa"}}(jQuery);
|
||||
!function(a){a.fn.datepicker.dates.sv={days:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],daysShort:["sön","mån","tis","ons","tor","fre","lör"],daysMin:["sö","må","ti","on","to","fr","lö"],months:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],monthsShort:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],today:"Idag",format:"yyyy-mm-dd",weekStart:1,clear:"Rensa"}}(jQuery);
|
1
bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.tk.min.js
vendored
Normal file
1
bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.tk.min.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!function(a){a.fn.datepicker.dates.tk={days:["Ýekşenbe","Duşenbe","Sişenbe","Çarşenbe","Penşenbe","Anna","Şenbe"],daysShort:["Ýek","Duş","Siş","Çar","Pen","Ann","Şen"],daysMin:["Ýe","Du","Si","Ça","Pe","An","Şe"],months:["Ýanwar","Fewral","Mart","Aprel","Maý","Iýun","Iýul","Awgust","Sentýabr","Oktýabr","Noýabr","Dekabr"],monthsShort:["Ýan","Few","Mar","Apr","Maý","Iýn","Iýl","Awg","Sen","Okt","Noý","Dek"],today:"Bu gün",monthsTitle:"Aýlar",clear:"Aýyr",weekStart:1,format:"dd.mm.yyyy"}}(jQuery);
|
|
@ -18,8 +18,8 @@
|
|||
* ========================================================= */
|
||||
|
||||
(function(factory){
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(["jquery"], factory);
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
|
@ -1154,10 +1154,6 @@
|
|||
nextIsDisabled,
|
||||
factor = 1;
|
||||
switch (this.viewMode){
|
||||
case 0:
|
||||
prevIsDisabled = year <= startYear && month <= startMonth;
|
||||
nextIsDisabled = year >= endYear && month >= endMonth;
|
||||
break;
|
||||
case 4:
|
||||
factor *= 10;
|
||||
/* falls through */
|
||||
|
@ -1168,8 +1164,12 @@
|
|||
factor *= 10;
|
||||
/* falls through */
|
||||
case 1:
|
||||
prevIsDisabled = Math.floor(year / factor) * factor <= startYear;
|
||||
nextIsDisabled = Math.floor(year / factor) * factor + factor >= endYear;
|
||||
prevIsDisabled = Math.floor(year / factor) * factor < startYear;
|
||||
nextIsDisabled = Math.floor(year / factor) * factor + factor > endYear;
|
||||
break;
|
||||
case 0:
|
||||
prevIsDisabled = year <= startYear && month < startMonth;
|
||||
nextIsDisabled = year >= endYear && month > endMonth;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1545,6 +1545,11 @@
|
|||
p.setRange(range);
|
||||
});
|
||||
},
|
||||
clearDates: function(){
|
||||
$.each(this.pickers, function(i, p){
|
||||
p.clearDates();
|
||||
});
|
||||
},
|
||||
dateUpdated: function(e){
|
||||
// `this.updating` is a workaround for preventing infinite recursion
|
||||
// between `changeDate` triggering and `setUTCDate` calling. Until
|
||||
|
@ -2011,7 +2016,7 @@
|
|||
|
||||
/* DATEPICKER VERSION
|
||||
* =================== */
|
||||
$.fn.datepicker.version = '1.7.1';
|
||||
$.fn.datepicker.version = '1.8.0';
|
||||
|
||||
$.fn.datepicker.deprecated = function(msg){
|
||||
var console = window.console;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Canadian English translation for bootstrap-datepicker
|
||||
* Mike Nacey <mnacey@gmail.com>
|
||||
* DEPRECATED: This filename doesn't follow the convention, use bootstrap-datepicker.en-CA.js instead
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['en-CA'] = {
|
||||
|
@ -15,4 +16,7 @@
|
|||
weekStart: 0,
|
||||
format: "yyyy-mm-dd"
|
||||
};
|
||||
|
||||
$.fn.datepicker.deprecated('This filename doesn\'t follow the convention, use bootstrap-datepicker.en-CA.js instead.');
|
||||
|
||||
}(jQuery));
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
clear: "Vymazat",
|
||||
monthsTitle: "Měsíc",
|
||||
weekStart: 1,
|
||||
format: "dd.m.yyyy"
|
||||
format: "dd.mm.yyyy"
|
||||
};
|
||||
}(jQuery));
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
today: "I Dag",
|
||||
weekStart: 1,
|
||||
clear: "Nulstil",
|
||||
format: "dd/mm/yyyy"
|
||||
format: "dd/mm/yyyy",
|
||||
monthsTitle:"Måneder"
|
||||
};
|
||||
}(jQuery));
|
||||
|
|
18
bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-CA.js
vendored
Normal file
18
bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-CA.js
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Canadian English translation for bootstrap-datepicker
|
||||
* Mike Nacey <mnacey@gmail.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['en-CA'] = {
|
||||
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
||||
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
||||
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
||||
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
||||
today: "Today",
|
||||
monthsTitle: "Months",
|
||||
clear: "Clear",
|
||||
weekStart: 0,
|
||||
format: "yyyy-mm-dd"
|
||||
};
|
||||
}(jQuery));
|
|
@ -10,6 +10,7 @@
|
|||
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "Se"],
|
||||
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
||||
monthsTitle: "Mēneši",
|
||||
today: "Šodien",
|
||||
clear: "Nodzēst",
|
||||
weekStart: 1
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/**
|
||||
* Norwegian (bokmål) translation for bootstrap-datepicker
|
||||
* Fredrik Sundmyhr <http://github.com/fsundmyhr>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['nb'] = {
|
||||
days: ["Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag"],
|
||||
daysShort: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
|
||||
daysMin: ["Sø", "Ma", "Ti", "On", "To", "Fr", "Lø"],
|
||||
months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"],
|
||||
today: "I Dag",
|
||||
format: "dd.mm.yyyy"
|
||||
};
|
||||
}(jQuery));
|
|
@ -1,14 +1,16 @@
|
|||
/**
|
||||
* Norwegian translation for bootstrap-datepicker
|
||||
**/
|
||||
* George Gooding <george@nettsentrisk.no>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['no'] = {
|
||||
days: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
|
||||
daysShort: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
|
||||
daysMin: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
|
||||
months: ['Januar', 'Februar', 'Mars', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Desember'],
|
||||
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
|
||||
today: 'I dag',
|
||||
days: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],
|
||||
daysShort: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
|
||||
daysMin: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'],
|
||||
months: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'vovember', 'desember'],
|
||||
monthsShort: ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'],
|
||||
today: 'i dag',
|
||||
monthsTitle: 'Måneder',
|
||||
clear: 'Nullstill',
|
||||
weekStart: 1,
|
||||
format: 'dd.mm.yyyy'
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['sv'] = {
|
||||
days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"],
|
||||
daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"],
|
||||
daysMin: ["Sö", "Må", "Ti", "On", "To", "Fr", "Lö"],
|
||||
months: ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"],
|
||||
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
||||
days: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"],
|
||||
daysShort: ["sön", "mån", "tis", "ons", "tor", "fre", "lör"],
|
||||
daysMin: ["sö", "må", "ti", "on", "to", "fr", "lö"],
|
||||
months: ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"],
|
||||
monthsShort: ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"],
|
||||
today: "Idag",
|
||||
format: "yyyy-mm-dd",
|
||||
weekStart: 1,
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Turkmen translation for bootstrap-datepicker
|
||||
* N'Bayramberdiyev <nbayramberdiyev@outlook.com>
|
||||
*/
|
||||
;(function($){
|
||||
$.fn.datepicker.dates['tk'] = {
|
||||
days: ["Ýekşenbe", "Duşenbe", "Sişenbe", "Çarşenbe", "Penşenbe", "Anna", "Şenbe"],
|
||||
daysShort: ["Ýek", "Duş", "Siş", "Çar", "Pen", "Ann", "Şen"],
|
||||
daysMin: ["Ýe", "Du", "Si", "Ça", "Pe", "An", "Şe"],
|
||||
months: ["Ýanwar", "Fewral", "Mart", "Aprel", "Maý", "Iýun", "Iýul", "Awgust", "Sentýabr", "Oktýabr", "Noýabr", "Dekabr"],
|
||||
monthsShort: ["Ýan", "Few", "Mar", "Apr", "Maý", "Iýn", "Iýl", "Awg", "Sen", "Okt", "Noý", "Dek"],
|
||||
today: "Bu gün",
|
||||
monthsTitle: "Aýlar",
|
||||
clear: "Aýyr",
|
||||
weekStart: 1,
|
||||
format: "dd.mm.yyyy"
|
||||
};
|
||||
}(jQuery));
|
|
@ -250,7 +250,6 @@
|
|||
min-width: 16px;
|
||||
padding: 4px 5px;
|
||||
line-height: @line-height-base;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
border-width: 1px 0;
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "bootstrap-datepicker",
|
||||
"description": "A datepicker for Bootstrap",
|
||||
"version": "1.7.1",
|
||||
"version": "1.8.0",
|
||||
"license": "Apache-2.0",
|
||||
"keywords": [
|
||||
"datepicker",
|
||||
|
|
|
@ -1626,13 +1626,13 @@ test('Nav arrow html templates .prev click', function () {
|
|||
equal(target.text(), '2011');
|
||||
});
|
||||
|
||||
test('Visibility of the prev and next arrows for decade/century/millenium views with startDate and endDate', function(){
|
||||
test('Visibility of the prev and next arrows for year/decade/century/millenium views with startDate and endDate', function(){
|
||||
var input = $('<input />')
|
||||
.appendTo('#qunit-fixture')
|
||||
.val('01/01/2015')
|
||||
.datepicker({
|
||||
format: 'dd/mm/yyyy',
|
||||
startView: 2,
|
||||
startView: 1,
|
||||
startDate: '01/12/2014',
|
||||
endDate: '01/12/2016'
|
||||
}),
|
||||
|
@ -1642,6 +1642,12 @@ test('Visibility of the prev and next arrows for decade/century/millenium views
|
|||
|
||||
input.focus();
|
||||
|
||||
target = picker.find('.datepicker-months thead th.prev');
|
||||
ok(!target.hasClass('disabled'), 'Prev switcher is not hidden');
|
||||
target = picker.find('.datepicker-months thead th.next');
|
||||
ok(!target.hasClass('disabled'), 'Next switcher is not hidden');
|
||||
|
||||
picker.find('.datepicker-months thead th.datepicker-switch').click();
|
||||
target = picker.find('.datepicker-years thead th.prev');
|
||||
ok(target.hasClass('disabled'), 'Prev switcher is hidden');
|
||||
target = picker.find('.datepicker-years thead th.next');
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="assets/qunit.css" />
|
||||
<link rel="stylesheet" href="assets/qunit.css">
|
||||
<script src="assets/qunit.js"></script>
|
||||
<!-- console.log for test failures: enable locally if you need extra debug info-->
|
||||
<!--<script src="assets/qunit-logging.js"></script>-->
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
"homepage": "http://ckeditor.com",
|
||||
"main": "./ckeditor.js",
|
||||
"moduleType": "globals",
|
||||
"version": "4.8.0",
|
||||
"_release": "4.8.0",
|
||||
"version": "4.10.0",
|
||||
"_release": "4.10.0",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "4.8.0",
|
||||
"commit": "3e0ba2fa7361e0e425b73b2e4400af4a7f767ec5"
|
||||
"tag": "4.10.0",
|
||||
"commit": "485918a01ecac5bd286f169e831eddcc895f5132"
|
||||
},
|
||||
"_source": "https://github.com/ckeditor/ckeditor-releases.git",
|
||||
"_target": "^4.7.0",
|
||||
|
|
|
@ -1 +1 @@
|
|||
Please do not report issues in CKEditor. The correct location of CKEditor issue tracker is: http://dev.ckeditor.com/
|
||||
Please do not report issues in CKEditor. The correct location of CKEditor issue tracker is: https://github.com/ckeditor/ckeditor-dev/issues
|
||||
|
|
|
@ -1,6 +1,130 @@
|
|||
CKEditor 4 Changelog
|
||||
====================
|
||||
|
||||
## CKEditor 4.10
|
||||
|
||||
New Features:
|
||||
|
||||
* [#1751](https://github.com/ckeditor/ckeditor-dev/issues/1751): Introduced the **Autocomplete** feature that consists of the following plugins:
|
||||
* [Autocomplete](https://ckeditor.com/cke4/addon/autocomplete) – Provides contextual completion feature for custom text matches based on user input.
|
||||
* [Text Watcher](https://ckeditor.com/cke4/addon/textWatcher) – Checks whether an editor's text change matches the chosen criteria.
|
||||
* [Text Match](https://ckeditor.com/cke4/addon/textMatch) – Allows to search [`CKEDITOR.dom.range`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_dom_range.html) for matching text.
|
||||
* [#1703](https://github.com/ckeditor/ckeditor-dev/issues/1703): Introduced the [Mentions](https://ckeditor.com/cke4/addon/mentions) plugin providing smart completion feature for custom text matches based on user input starting with a chosen marker character.
|
||||
* [#1746](https://github.com/ckeditor/ckeditor-dev/issues/1703): Introduced the [Emoji](https://ckeditor.com/cke4/addon/emoji) plugin providing completion feature for emoji ideograms.
|
||||
* [#1761](https://github.com/ckeditor/ckeditor-dev/issues/1761): The [Auto Link](https://ckeditor.com/cke4/addon/autolink) plugin now supports email links.
|
||||
|
||||
Fixed Issues:
|
||||
|
||||
* [#1458](https://github.com/ckeditor/ckeditor-dev/issues/1458): [Edge] Fixed: After blurring the editor it takes 2 clicks to focus a widget.
|
||||
* [#1034](https://github.com/ckeditor/ckeditor-dev/issues/1034): Fixed: JAWS leaves forms mode after pressing the <kbd>Enter</kbd> key in an inline editor instance.
|
||||
* [#1748](https://github.com/ckeditor/ckeditor-dev/pull/1748): Fixed: Missing [`CKEDITOR.dialog.definition.onHide`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_dialog_definition.html#property-onHide) API documentation. Thanks to [sunnyone](https://github.com/sunnyone)!
|
||||
* [#1321](https://github.com/ckeditor/ckeditor-dev/issues/1321): Ideographic space character (`\u3000`) is lost when pasting text.
|
||||
* [#1776](https://github.com/ckeditor/ckeditor-dev/issues/1776): Empty caption placeholder of the [Image Base](https://ckeditor.com/cke4/addon/imagebase) plugin is not hidden when blurred.
|
||||
* [#1592](https://github.com/ckeditor/ckeditor-dev/issues/1592): The [Image Base](https://ckeditor.com/cke4/addon/imagebase) plugin caption is not visible after paste.
|
||||
* [#620](https://github.com/ckeditor/ckeditor-dev/issues/620): Fixed: The [`config.forcePasteAsPlainText`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-forcePasteAsPlainText) option is not respected in internal and cross-editor pasting.
|
||||
* [#1467](https://github.com/ckeditor/ckeditor-dev/issues/1467): Fixed: The resizing cursor of the [Table Resize](https://ckeditor.com/cke4/addon/tableresize) plugin appearing in the middle of a merged cell.
|
||||
|
||||
API Changes:
|
||||
|
||||
* [#850](https://github.com/ckeditor/ckeditor-dev/issues/850): Backward incompatibility: Replaced the `replace` dialog from the [Find / Replace](https://ckeditor.com/cke4/addon/find) plugin with a `tabId` option in the `find` command.
|
||||
* [#1582](https://github.com/ckeditor/ckeditor-dev/issues/1582): The [`CKEDITOR.editor.addCommand()`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_editor.html#method-addCommand) method can now accept a [`CKEDITOR.command`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_command.html) instance as a parameter.
|
||||
* [#1712](https://github.com/ckeditor/ckeditor-dev/issues/1712): The [`extraPlugins`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-extraPlugins), [`removePlugins`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-removePlugins) and [`plugins`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-plugins) configuration options allow whitespace.
|
||||
* [#1802](https://github.com/ckeditor/ckeditor-dev/issues/1802): The [`extraPlugins`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-extraPlugins), [`removePlugins`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-removePlugins) and [`plugins`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-plugins) configuration options allow passing plugin names as an array.
|
||||
* [#1724](https://github.com/ckeditor/ckeditor-dev/issues/1724): Added an option to the [`getClientRect()`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_dom_element.html#method-getClientRect) function allowing to retrieve an absolute bounding rectangle of the element, i.e. a position relative to the upper-left corner of the topmost viewport.
|
||||
* [#1498](https://github.com/ckeditor/ckeditor-dev/issues/1498) : Added a new [`getClientRects()`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_dom_range.html#method-getClientRects) method to `CKEDITOR.dom.range`. It returns a list of rectangles for each selected element.
|
||||
* [#1993](https://github.com/ckeditor/ckeditor-dev/issues/1993): Added the [`CKEDITOR.tools.throttle()`](http://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR_tools.html#method-throttle) function.
|
||||
|
||||
Other Changes:
|
||||
|
||||
* Updated [SCAYT](https://ckeditor.com/cke4/addon/scayt) (Spell Check As You Type) and [WebSpellChecker](https://ckeditor.com/cke4/addon/wsc) (WSC) plugins:
|
||||
* Language dictionary update: Added support for the Uzbek Latin language.
|
||||
* Languages no longer supported as additional languages: Manx - Isle of Man (`gv_GB`) and Interlingua (`ia_XR`).
|
||||
* Extended and improved language dictionaries: Georgian and Swedish. Also added the missing word _"Ensure"_ to the American, British and Canada English language.
|
||||
* [#141](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/141) Fixed: SCAYT throws "Uncaught Error: Error in RangyWrappedRange module: createRange(): Parameter must be a Window object or DOM node".
|
||||
* [#153](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/153) [Chrome] Fixed: Correcting a word in the widget in SCAYT moves focus to another editable.
|
||||
* [#155](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/155) [IE8] Fixed: SCAYT throws an error and does not work.
|
||||
* [#156](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/156) [IE10] Fixed: SCAYT does not seem to work.
|
||||
* Fixed: After some text is dragged and dropped, the markup is not refreshed for grammar problems in SCAYT.
|
||||
* Fixed: Request to FastCGI fails when the user tries to replace a word with non-English characters with a proper suggestion in WSC.
|
||||
* [Firefox] Fixed: <kbd>Ctrl</kbd>+<kbd>Z</kbd> removes focus in SCAYT.
|
||||
* Grammar support for default languages was improved.
|
||||
* New application source URL was added in SCAYT.
|
||||
* Removed green marks and legend related to grammar-supported languages in the Languages tab of SCAYT. Grammar is now supported for almost all the anguages in the list for an additional fee.
|
||||
* Fixed: JavaScript error in the console: "Cannot read property 'split' of undefined" in SCAYT and WSC.
|
||||
* [IE10] Fixed: Markup is not set for a specific case in SCAYT.
|
||||
* Fixed: Accessibility issue: No `alt` attribute for the logo image in the About tab of SCAYT.
|
||||
|
||||
## CKEditor 4.9.2
|
||||
|
||||
**Security Updates:**
|
||||
|
||||
* Fixed XSS vulnerability in the [Enhanced Image](https://ckeditor.com/cke4/addon/image2) (`image2`) plugin reported by [Kyaw Min Thein](https://twitter.com/kyawminthein99).
|
||||
|
||||
Issue summary: It was possible to execute XSS inside CKEditor using the `<img>` tag and specially crafted HTML. Please note that the default presets (Basic/Standard/Full) do not include this plugin, so you are only at risk if you made a custom build and enabled this plugin.
|
||||
|
||||
We would like to thank the [Drupal security team](https://www.drupal.org/drupal-security-team) for bringing this matter to our attention and coordinating the fix and release process!
|
||||
|
||||
## CKEditor 4.9.1
|
||||
|
||||
Fixed Issues:
|
||||
|
||||
* [#1835](https://github.com/ckeditor/ckeditor-dev/issues/1835): Fixed: Integration between [CKFinder](https://ckeditor.com/ckeditor-4/ckfinder/) and the [File Browser](https://ckeditor.com/cke4/addon/filebrowser) plugin does not work.
|
||||
|
||||
## CKEditor 4.9
|
||||
|
||||
New Features:
|
||||
|
||||
* [#932](https://github.com/ckeditor/ckeditor-dev/issues/932): Introduced Easy Image feature for inserting images that are automatically rescaled, optimized, responsive and delivered through a blazing-fast CDN. Three new plugins were added to support it:
|
||||
* [Easy Image](https://ckeditor.com/cke4/addon/easyimage),
|
||||
* [Cloud Services](https://ckeditor.com/cke4/addon/cloudservices)
|
||||
* [Image Base](https://ckeditor.com/cke4/addon/imagebase)
|
||||
* [#1338](https://github.com/ckeditor/ckeditor-dev/issues/1338): Keystroke labels are displayed for function keys (like F7, F8).
|
||||
* [#643](https://github.com/ckeditor/ckeditor-dev/issues/643): The [File Browser](https://ckeditor.com/cke4/addon/filebrowser) plugin can now upload files using XHR requests. This allows for setting custom HTTP headers using the [`config.fileTools_requestHeaders`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-fileTools_requestHeaders) configuration option.
|
||||
* [#1365](https://github.com/ckeditor/ckeditor-dev/issues/1365): The [File Browser](https://ckeditor.com/cke4/addon/filebrowser) plugin uses XHR requests by default.
|
||||
* [#1399](https://github.com/ckeditor/ckeditor-dev/issues/1399): Added the possibility to set [`CKEDITOR.config.startupFocus`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-startupFocus) as `start` or `end` to specify where the editor focus should be after the initialization.
|
||||
* [#1441](https://github.com/ckeditor/ckeditor-dev/issues/1441): The [Magic Line](https://ckeditor.com/cke4/addon/magicline) plugin line element can now be identified by the `data-cke-magic-line="1"` attribute.
|
||||
|
||||
Fixed Issues:
|
||||
|
||||
* [#595](https://github.com/ckeditor/ckeditor-dev/issues/595): Fixed: Pasting does not work on mobile devices.
|
||||
* [#869](https://github.com/ckeditor/ckeditor-dev/issues/869): Fixed: Empty selection clears cached clipboard data in the editor.
|
||||
* [#1419](https://github.com/ckeditor/ckeditor-dev/issues/1419): Fixed: The [Widget Selection](https://ckeditor.com/cke4/addon/widgetselection) plugin selects the editor content with the <kbd>Alt+A</kbd> key combination on Windows.
|
||||
* [#1274](https://github.com/ckeditor/ckeditor-dev/issues/1274): Fixed: [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) does not match a single selected image using the [`contextDefinition.cssSelector`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.balloontoolbar.contextDefinition-property-cssSelector) matcher.
|
||||
* [#1232](https://github.com/ckeditor/ckeditor-dev/issues/1232): Fixed: [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) buttons should be registered as focusable elements.
|
||||
* [#1342](https://github.com/ckeditor/ckeditor-dev/issues/1342): Fixed: [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) should be re-positioned after the [`change`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-event-change) event.
|
||||
* [#1426](https://github.com/ckeditor/ckeditor-dev/issues/1426): [IE8-9] Fixed: Missing [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) background in the [Kama](https://ckeditor.com/cke4/addon/kama) skin. Thanks to [Christian Elmer](https://github.com/keinkurt)!
|
||||
* [#1470](https://github.com/ckeditor/ckeditor-dev/issues/1470): Fixed: [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) is not visible after drag and drop of a widget it is attached to.
|
||||
* [#1048](https://github.com/ckeditor/ckeditor-dev/issues/1048): Fixed: [Balloon Panel](https://ckeditor.com/cke4/addon/balloonpanel) is not positioned properly when a margin is added to its non-static parent.
|
||||
* [#889](https://github.com/ckeditor/ckeditor-dev/issues/889): Fixed: Unclear error message for width and height fields in the [Image](https://ckeditor.com/cke4/addon/image) and [Enhanced Image](https://ckeditor.com/cke4/addon/image2) plugins.
|
||||
* [#859](https://github.com/ckeditor/ckeditor-dev/issues/859): Fixed: Cannot edit a link after a double-click on the text in the link.
|
||||
* [#1013](https://github.com/ckeditor/ckeditor-dev/issues/1013): Fixed: [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) does not work correctly with the [`config.forcePasteAsPlainText`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-forcePasteAsPlainText) option.
|
||||
* [#1356](https://github.com/ckeditor/ckeditor-dev/issues/1356): Fixed: [Border parse function](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.style.parse-method-border) does not allow spaces in the color value.
|
||||
* [#1010](https://github.com/ckeditor/ckeditor-dev/issues/1010): Fixed: The CSS `border` shorthand property was incorrectly expanded ignoring the `border-color` style.
|
||||
* [#1535](https://github.com/ckeditor/ckeditor-dev/issues/1535): Fixed: [Widget](https://ckeditor.com/cke4/addon/widget) mouseover border contrast is insufficient.
|
||||
* [#1516](https://github.com/ckeditor/ckeditor-dev/issues/1516): Fixed: Fake selection allows removing content in read-only mode using the <kbd>Backspace</kbd> and <kbd>Delete</kbd> keys.
|
||||
* [#1570](https://github.com/ckeditor/ckeditor-dev/issues/1570): Fixed: Fake selection allows cutting content in read-only mode using the <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> + <kbd>X</kbd> keys.
|
||||
* [#1363](https://github.com/ckeditor/ckeditor-dev/issues/1363): Fixed: Paste notification is unclear and it might confuse users.
|
||||
|
||||
API Changes:
|
||||
|
||||
* [#1346](https://github.com/ckeditor/ckeditor-dev/issues/1346): [Balloon Toolbar](https://ckeditor.com/cke4/addon/balloontoolbar) [context manager API](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.balloontoolbar.contextManager) is now available in the [`pluginDefinition.init()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.pluginDefinition-method-init) method of the [requiring](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.pluginDefinition-property-requires) plugin.
|
||||
* [#1530](https://github.com/ckeditor/ckeditor-dev/issues/1530): Added the possibility to use custom icons for [buttons](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR_ui_button.html).
|
||||
|
||||
Other Changes:
|
||||
|
||||
* Updated [SCAYT](https://ckeditor.com/cke4/addon/scayt) (Spell Check As You Type) and [WebSpellChecker](https://ckeditor.com/cke4/addon/wsc) (WSC) plugins:
|
||||
* SCAYT [`scayt_minWordLength`](https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#scayt_minWordLength) configuration option now defaults to 3 instead of 4.
|
||||
* SCAYT default number of suggested words in the context menu changed to 3.
|
||||
* [#90](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/90): Fixed: Selection is lost on link creation if SCAYT highlights the word.
|
||||
* Fixed: SCAYT crashes when the browser `localStorage` is disabled.
|
||||
* [IE11] Fixed: `Unable to get property type of undefined or null reference` error in the browser console when SCAYT is disabled/enabled.
|
||||
* [#46](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/46): Fixed: Editing is blocked when remote spell checker server is offline.
|
||||
* Fixed: User Dictionary cannot be created in WSC due to `You already have the dictionary` error.
|
||||
* Fixed: Words with apostrophe `'` on the replacement make the WSC dialog inaccessible.
|
||||
* Fixed: SCAYT/WSC causes the `Uncaught TypeError` error in the browser console.
|
||||
* [#1337](https://github.com/ckeditor/ckeditor-dev/issues/1337): Updated the samples layout with the new CKEditor 4 logo and color scheme.
|
||||
* [#1591](https://github.com/ckeditor/ckeditor-dev/issues/1591): CKBuilder and language tools are now downloaded over HTTPS. Thanks to [August Detlefsen](https://github.com/augustd)!
|
||||
|
||||
## CKEditor 4.8
|
||||
|
||||
**Important Notes:**
|
||||
|
@ -14,9 +138,9 @@ New Features:
|
|||
* [#468](https://github.com/ckeditor/ckeditor-dev/issues/468): [Edge] Introduced support for the Clipboard API.
|
||||
* [#607](https://github.com/ckeditor/ckeditor-dev/issues/607): Manually inserted Hex color is prefixed with a hash character (`#`) if needed. It ensures a valid Hex color value is used when setting the table cell border or background color with the [Color Dialog](https://ckeditor.com/cke4/addon/colordialog) window.
|
||||
* [#584](https://github.com/ckeditor/ckeditor-dev/issues/584): [Font size and Family](https://ckeditor.com/cke4/addon/font) and [Format](https://ckeditor.com/cke4/addon/format) drop-downs are not toggleable anymore. Default option to reset styles added.
|
||||
* [#856](https://github.com/ckeditor/ckeditor-dev/issues/856): Introduced the [`CKEDITOR.tools.keystrokeToArray`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools-method-keystrokeToArray) method. It converts a keystroke into its string representation, returning every key name as a separate array element.
|
||||
* [#1053](https://github.com/ckeditor/ckeditor-dev/issues/1053): Introduced the [`CKEDITOR.tools.object.merge`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.object-method-merge) method. It allows to merge two objects, returning the new object with all properties from both objects deeply cloned.
|
||||
* [#1073](https://github.com/ckeditor/ckeditor-dev/issues/1073): Introduced the [`CKEDITOR.tools.array.every`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.array-method-every) method. It invokes a given test function on every array element and returns `true` if all elements pass the test.
|
||||
* [#856](https://github.com/ckeditor/ckeditor-dev/issues/856): Introduced the [`CKEDITOR.tools.keystrokeToArray()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools-method-keystrokeToArray) method. It converts a keystroke into its string representation, returning every key name as a separate array element.
|
||||
* [#1053](https://github.com/ckeditor/ckeditor-dev/issues/1053): Introduced the [`CKEDITOR.tools.object.merge()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.object-method-merge) method. It allows to merge two objects, returning the new object with all properties from both objects deeply cloned.
|
||||
* [#1073](https://github.com/ckeditor/ckeditor-dev/issues/1073): Introduced the [`CKEDITOR.tools.array.every()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.tools.array-method-every) method. It invokes a given test function on every array element and returns `true` if all elements pass the test.
|
||||
|
||||
Fixed Issues:
|
||||
|
||||
|
@ -28,7 +152,7 @@ Fixed Issues:
|
|||
* [#842](https://github.com/ckeditor/ckeditor-dev/issues/842): Fixed: List style not restored when toggling list indent level in the [Indent List](https://ckeditor.com/cke4/addon/indentlist) plugin.
|
||||
* [#711](https://github.com/ckeditor/ckeditor-dev/issues/711): Fixed: Dragging widgets should only work with the left mouse button.
|
||||
* [#862](https://github.com/ckeditor/ckeditor-dev/issues/862): Fixed: The "Object Styles" group in the [Styles Combo](https://ckeditor.com/cke4/addon/stylescombo) plugin is visible only if the whole element is selected.
|
||||
* [#994](https://github.com/ckeditor/ckeditor-dev/pull/994): Fixed: Typo in the [`CKEDITOR.focusManager.focus`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.focusManager-method-focus) API documentation. Thanks to [benjy](https://github.com/benjy)!
|
||||
* [#994](https://github.com/ckeditor/ckeditor-dev/pull/994): Fixed: Typo in the [`CKEDITOR.focusManager.focus()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.focusManager-method-focus) API documentation. Thanks to [benjy](https://github.com/benjy)!
|
||||
* [#1014](https://github.com/ckeditor/ckeditor-dev/issues/1014): Fixed: The [Table Tools](https://ckeditor.com/cke4/addon/tabletools) Cell Properties dialog is now [Advanced Content Filter](https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_acf) aware — it is not possible to change the cell width or height if corresponding styles are disabled.
|
||||
* [#877](https://github.com/ckeditor/ckeditor-dev/issues/877): Fixed: A list with custom bullets with exotic characters crashes the editor when [pasted from Word](https://ckeditor.com/cke4/addon/pastefromword).
|
||||
* [#605](https://github.com/ckeditor/ckeditor-dev/issues/605): Fixed: Inline widgets do not preserve trailing spaces.
|
||||
|
@ -49,7 +173,7 @@ Fixed Issues:
|
|||
API Changes:
|
||||
|
||||
* [#1097](https://github.com/ckeditor/ckeditor-dev/issues/1097): Widget [`upcast`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.widget.definition-property-upcast) methods are now called in the [widget definition's](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.plugins.widget-property-definition) context.
|
||||
* [#1118](https://github.com/ckeditor/ckeditor-dev/issues/1118): Added the `show` option in the [`balloonPanel.attach`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.ui.balloonPanel-method-attach) method, allowing to attach a hidden [Balloon Panel](https://ckeditor.com/cke4/addon/balloonpanel) instance.
|
||||
* [#1118](https://github.com/ckeditor/ckeditor-dev/issues/1118): Added the `show` option in the [`balloonPanel.attach()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.ui.balloonPanel-method-attach) method, allowing to attach a hidden [Balloon Panel](https://ckeditor.com/cke4/addon/balloonpanel) instance.
|
||||
* [#1145](https://github.com/ckeditor/ckeditor-dev/issues/1145): Added the [`skipNotifications`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition-property-skipNotifications) option to the [`CKEDITOR.fileTools.uploadWidgetDefinition`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.fileTools.uploadWidgetDefinition), allowing to switch off default notifications displayed by upload widgets.
|
||||
|
||||
Other Changes:
|
||||
|
@ -78,7 +202,7 @@ Other Changes:
|
|||
|
||||
* Updated the [WebSpellChecker](https://ckeditor.com/cke4/addon/wsc) plugin:
|
||||
* [#40](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/40): Fixed: IE10 throws an error when spell checking is started.
|
||||
* [#800](https://github.com/ckeditor/ckeditor-dev/issues/800): Added the [`CKEDITOR.dom.selection.isCollapsed`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.selection-method-isCollapsed) method which is a simpler way to check if the selection is collapsed.
|
||||
* [#800](https://github.com/ckeditor/ckeditor-dev/issues/800): Added the [`CKEDITOR.dom.selection.isCollapsed()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.selection-method-isCollapsed) method which is a simpler way to check if the selection is collapsed.
|
||||
* [#830](https://github.com/ckeditor/ckeditor-dev/issues/830): Added an option to define which dialog tab should be shown by default when creating [`CKEDITOR.dialogCommand`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dialogCommand).
|
||||
|
||||
## CKEditor 4.7.2
|
||||
|
@ -101,15 +225,15 @@ Fixed Issues:
|
|||
* [#501](https://github.com/ckeditor/ckeditor-dev/issues/501): Fixed: Double click does not open the dialog for modifying anchors inserted via the [Link](https://ckeditor.com/cke4/addon/link) plugin.
|
||||
* [#9780](https://dev.ckeditor.com/ticket/9780): [IE8-9] Fixed: Clicking inside an empty [read-only](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-property-readOnly) editor throws an error.
|
||||
* [#16820](https://dev.ckeditor.com/ticket/16820): [IE10] Fixed: Clicking below a single horizontal rule throws an error.
|
||||
* [#426](https://github.com/ckeditor/ckeditor-dev/issues/426): Fixed: The [`range.cloneContents`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-cloneContents) method selects the whole element when the selection starts at the beginning of that element.
|
||||
* [#644](https://github.com/ckeditor/ckeditor-dev/issues/644): Fixed: The [`range.extractContents`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-extractContents) method returns an incorrect result when multiple nodes are selected.
|
||||
* [#684](https://github.com/ckeditor/ckeditor-dev/issues/684): Fixed: The [`elementPath.contains`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.elementPath-method-contains) method incorrectly excludes the last element instead of root when the `fromTop` parameter is set to `true`.
|
||||
* [#426](https://github.com/ckeditor/ckeditor-dev/issues/426): Fixed: The [`range.cloneContents()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-cloneContents) method selects the whole element when the selection starts at the beginning of that element.
|
||||
* [#644](https://github.com/ckeditor/ckeditor-dev/issues/644): Fixed: The [`range.extractContents()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-extractContents) method returns an incorrect result when multiple nodes are selected.
|
||||
* [#684](https://github.com/ckeditor/ckeditor-dev/issues/684): Fixed: The [`elementPath.contains()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.elementPath-method-contains) method incorrectly excludes the last element instead of root when the `fromTop` parameter is set to `true`.
|
||||
|
||||
Other Changes:
|
||||
|
||||
* Updated the [SCAYT](https://ckeditor.com/cke4/addon/scayt) (Spell Check As You Type) plugin:
|
||||
* [#148](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/148): Fixed: SCAYT leaves underlined word after the CKEditor Replace dialog corrects it.
|
||||
* [#751](https://github.com/ckeditor/ckeditor-dev/issues/751): Added the [`CKEDITOR.dom.nodeList.toArray`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.nodeList-method-toArray) method which returns an array representation of a [node list](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.nodeList).
|
||||
* [#751](https://github.com/ckeditor/ckeditor-dev/issues/751): Added the [`CKEDITOR.dom.nodeList.toArray()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.nodeList-method-toArray) method which returns an array representation of a [node list](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.nodeList).
|
||||
|
||||
## CKEditor 4.7.1
|
||||
|
||||
|
@ -128,7 +252,7 @@ Fixed Issues:
|
|||
* [#424](https://github.com/ckeditor/ckeditor-dev/issues/424): Fixed: Error thrown by [Tab Key Handling](https://ckeditor.com/cke4/addon/tab) and [Indent List](https://ckeditor.com/cke4/addon/indentlist) plugins when pressing <kbd>Tab</kbd> with no selection in inline editor.
|
||||
* [#476](https://github.com/ckeditor/ckeditor-dev/issues/476): Fixed: Anchors inserted with the [Link](https://ckeditor.com/cke4/addon/link) plugin on collapsed selection cannot be edited.
|
||||
* [#417](https://github.com/ckeditor/ckeditor-dev/issues/417): Fixed: The [Table Resize](https://ckeditor.com/cke4/addon/tableresize) plugin throws an error when used with a table with only header or footer rows.
|
||||
* [#523](https://github.com/ckeditor/ckeditor-dev/issues/523): Fixed: The [`editor.getCommandKeystroke`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-method-getCommandKeystroke) method does not obtain the correct keystroke.
|
||||
* [#523](https://github.com/ckeditor/ckeditor-dev/issues/523): Fixed: The [`editor.getCommandKeystroke()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.editor-method-getCommandKeystroke) method does not obtain the correct keystroke.
|
||||
* [#534](https://github.com/ckeditor/ckeditor-dev/issues/534): [IE] Fixed: [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) does not work in Quirks Mode.
|
||||
* [#450](https://github.com/ckeditor/ckeditor-dev/issues/450): Fixed: [`CKEDITOR.filter`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.filter) incorrectly transforms the `margin` CSS property.
|
||||
|
||||
|
@ -148,8 +272,8 @@ New Features:
|
|||
* [#16847](https://dev.ckeditor.com/ticket/16847): Added support for parsing and inlining any formatting created using the Microsoft Word style system to the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin.
|
||||
* [#16818](https://dev.ckeditor.com/ticket/16818): Added table cell height parsing in the [Paste from Word](https://ckeditor.com/cke4/addon/pastefromword) plugin.
|
||||
* [#16850](https://dev.ckeditor.com/ticket/16850): Added a new [`config.enableContextMenu`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-enableContextMenu) configuration option for enabling and disabling the [context menu](https://ckeditor.com/cke4/addon/contextmenu).
|
||||
* [#16937](https://dev.ckeditor.com/ticket/16937): The `command` parameter in [CKEDITOR.editor.getCommandKeystroke](http://docs.ckeditor.dev/#!/api/CKEDITOR.editor-method-getCommandKeystroke) now also accepts a command name as an argument.
|
||||
* [#17010](https://dev.ckeditor.com/ticket/17010): The [`CKEDITOR.dom.range.shrink`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-shrink) method now allows for skipping bogus `<br>` elements.
|
||||
* [#16937](https://dev.ckeditor.com/ticket/16937): The `command` parameter in [`CKEDITOR.editor.getCommandKeystroke()`](http://docs.ckeditor.dev/#!/api/CKEDITOR.editor-method-getCommandKeystroke) now also accepts a command name as an argument.
|
||||
* [#17010](https://dev.ckeditor.com/ticket/17010): The [`CKEDITOR.dom.range.shrink()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.range-method-shrink) method now allows for skipping bogus `<br>` elements.
|
||||
|
||||
Fixed Issues:
|
||||
|
||||
|
@ -183,7 +307,7 @@ Fixed Issues:
|
|||
* [#14407](https://dev.ckeditor.com/ticket/14407): [IE] Fixed: Non-editable widgets can be edited.
|
||||
* [#16927](https://dev.ckeditor.com/ticket/16927): Fixed: An error thrown if a bundle containing the [Color Button](https://ckeditor.com/cke4/addon/colorbutton) plugin is run in ES5 strict mode. Thanks to [Igor Rubinovich](https://github.com/IgorRubinovich)!
|
||||
* [#16920](https://dev.ckeditor.com/ticket/16920): Fixed: Several plugins not using the [Dialog](https://ckeditor.com/cke4/addon/dialog) plugin as a direct dependency.
|
||||
* [PR#336](https://github.com/ckeditor/ckeditor-dev/pull/336): Fixed: Typo in [`CKEDITOR.getCss`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR-method-getCss) API documentation. Thanks to [knusperpixel](https://github.com/knusperpixel)!
|
||||
* [PR#336](https://github.com/ckeditor/ckeditor-dev/pull/336): Fixed: Typo in [`CKEDITOR.getCss()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR-method-getCss) API documentation. Thanks to [knusperpixel](https://github.com/knusperpixel)!
|
||||
* [#17027](https://dev.ckeditor.com/ticket/17027): Fixed: Command event data should be initialized as an empty object.
|
||||
* Fixed the behavior of HTML parser when parsing `src`/`srcdoc` attributes of the `<iframe>` element in a CKEditor setup with ACF turned off and without the [Iframe Dialog](https://ckeditor.com/cke4/addon/iframe) plugin. The issue was originally reported as a security issue by [Sriramk21](https://twitter.com/sriramk21) from Pegasystems and was later downgraded by the security team into a normal issue due to the requirement of having ACF turned off. Disabling [Advanced Content Filter](https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_advanced_content_filter) is against [security best practices](https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_best_practices-section-security), so the problem described above has not been considered a security issue as such.
|
||||
|
||||
|
@ -214,7 +338,7 @@ Fixed Issues:
|
|||
* [#16728](https://dev.ckeditor.com/ticket/16728): [IE] Fixed: [Copy Formatting](https://ckeditor.com/cke4/addon/copyformatting) breaks the editor in Quirks Mode.
|
||||
* [#16795](https://dev.ckeditor.com/ticket/16795): [IE] Fixed: [Copy Formatting](https://ckeditor.com/cke4/addon/copyformatting) breaks the editor in Compatibility Mode.
|
||||
* [#16675](https://dev.ckeditor.com/ticket/16675): Fixed: Styles applied with [Copy Formatting](https://ckeditor.com/cke4/addon/copyformatting) to a single table cell are applied to the whole table.
|
||||
* [#16753](https://dev.ckeditor.com/ticket/16753): Fixed: [`element.setSize`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.element-method-setSize) sets incorrect editor dimensions if the border width is represented as a fraction of pixels.
|
||||
* [#16753](https://dev.ckeditor.com/ticket/16753): Fixed: [`element.setSize()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dom.element-method-setSize) sets incorrect editor dimensions if the border width is represented as a fraction of pixels.
|
||||
* [#16705](https://dev.ckeditor.com/ticket/16705): [Firefox] Fixed: Unable to paste images as Base64 strings when using [Clipboard](https://ckeditor.com/cke4/addon/clipboard).
|
||||
* [#14869](https://dev.ckeditor.com/ticket/14869): Fixed: JavaScript error is thrown when trying to use [Find](https://ckeditor.com/cke4/addon/find) in a [`<div>`-based editor](https://ckeditor.com/cke4/addon/divarea).
|
||||
|
||||
|
@ -222,7 +346,7 @@ Fixed Issues:
|
|||
|
||||
New Features:
|
||||
|
||||
* [#16639](https://dev.ckeditor.com/ticket/16639): The `callback` parameter in the [CKEDITOR.ajax.post](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.ajax-method-post) method became optional.
|
||||
* [#16639](https://dev.ckeditor.com/ticket/16639): The `callback` parameter in the [`CKEDITOR.ajax.post()`](https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.ajax-method-post) method became optional.
|
||||
|
||||
Fixed Issues:
|
||||
|
||||
|
@ -320,7 +444,7 @@ Fixed Issues:
|
|||
* [#13548](https://dev.ckeditor.com/ticket/13548): [IE] Fixed: Clicking the [elements path](https://ckeditor.com/cke4/addon/elementspath) disables Cut and Copy icons.
|
||||
* [#13812](https://dev.ckeditor.com/ticket/13812): Fixed: When aborting file upload the placeholder for image is left.
|
||||
* [#14659](https://dev.ckeditor.com/ticket/14659): [Blink] Fixed: Content scrolled to the top after closing the dialog in a [`<div>`-based editor](https://ckeditor.com/cke4/addon/divarea).
|
||||
* [#14825](https://dev.ckeditor.com/ticket/14825): [Edge] Fixed: Focusing the editor causes unwanted scrolling due to dropped support for the `setActive` method.
|
||||
* [#14825](https://dev.ckeditor.com/ticket/14825): [Edge] Fixed: Focusing the editor causes unwanted scrolling due to dropped support for the `setActive()` method.
|
||||
|
||||
## CKEditor 4.5.10
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ Software License Agreement
|
|||
==========================
|
||||
|
||||
CKEditor - The text editor for Internet - https://ckeditor.com/
|
||||
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
|
||||
|
||||
Licensed under the terms of any of the following licenses at your
|
||||
choice:
|
||||
|
@ -37,7 +37,7 @@ done by developers outside of CKSource with their express permission.
|
|||
|
||||
The following libraries are included in CKEditor under the MIT license (see Appendix D):
|
||||
|
||||
* CKSource Samples Framework (included in the samples) - Copyright (c) 2014-2017, CKSource - Frederico Knabben.
|
||||
* CKSource Samples Framework (included in the samples) - Copyright (c) 2014-2018, CKSource - Frederico Knabben.
|
||||
* PicoModal (included in `samples/js/sf.js`) - Copyright (c) 2012 James Frasca.
|
||||
* CodeMirror (included in the samples) - Copyright (C) 2014 by Marijn Haverbeke <marijnh@gmail.com> and others.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
(function(a){if("undefined"==typeof a)throw Error("jQuery should be loaded before CKEditor jQuery adapter.");if("undefined"==typeof CKEDITOR)throw Error("CKEditor should be loaded before CKEditor jQuery adapter.");CKEDITOR.config.jqueryOverrideVal="undefined"==typeof CKEDITOR.config.jqueryOverrideVal?!0:CKEDITOR.config.jqueryOverrideVal;a.extend(a.fn,{ckeditorGet:function(){var a=this.eq(0).data("ckeditorInstance");if(!a)throw"CKEditor is not initialized yet, use ckeditor() with a callback.";return a},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
|
||||
CKEDITOR.editorConfig = function( config ) {
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
/*
|
||||
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/terms-of-use/#open-source-licences
|
||||
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||||
*/
|
||||
|
||||
body
|
||||
{
|
||||
/* Font */
|
||||
font-family: sans-serif, Arial, Verdana, "Trebuchet MS";
|
||||
/* Emoji fonts are added to visualise them nicely in Internet Explorer. */
|
||||
font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
font-size: 12px;
|
||||
|
||||
/* Text color */
|
||||
color: #333;
|
||||
|
||||
/* Remove the background color to make it transparent */
|
||||
/* Remove the background color to make it transparent. */
|
||||
background-color: #fff;
|
||||
|
||||
margin: 20px;
|
||||
|
@ -60,7 +61,7 @@ ol,ul,dl
|
|||
{
|
||||
/* IE7: reset rtl list margin. (#7334) */
|
||||
*margin-right: 0px;
|
||||
/* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/
|
||||
/* Preserved spaces for list items with text direction different than the list. (#6249,#8049)*/
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
|
@ -113,8 +114,7 @@ span[lang]
|
|||
figure
|
||||
{
|
||||
text-align: center;
|
||||
border: solid 1px #ccc;
|
||||
border-radius: 2px;
|
||||
outline: solid 1px #ccc;
|
||||
background: rgba(0,0,0,0.05);
|
||||
padding: 10px;
|
||||
margin: 10px 20px;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
Copyright (c) 2003-2018, 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
|
||||
|
|
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
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
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
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue