Skip to content

Commit

Permalink
Change major version numbers to be always X.X.X and fix minor styling…
Browse files Browse the repository at this point in the history
… issues in those files.
  • Loading branch information
Dumluregn authored and f1ames committed Jun 17, 2019
1 parent c071b48 commit 9e10d20
Show file tree
Hide file tree
Showing 66 changed files with 278 additions and 277 deletions.
4 changes: 2 additions & 2 deletions core/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ CKEDITOR.command = function( editor, commandDefinition ) {
* that if command implements {@link CKEDITOR.feature} interface it will be tested
* by the {@link CKEDITOR.filter#checkFeature} method.
*
* @since 4.1
* @since 4.1.0
* @param {Boolean} [noCache] Skip cache for example due to active filter change. Since CKEditor 4.2.
* @returns {Boolean} Whether this command is allowed.
*/
Expand Down Expand Up @@ -269,7 +269,7 @@ CKEDITOR.event.implementOn( CKEDITOR.command.prototype );
* @event state
*/

/**
/**
* @event refresh
* @todo
*/
2 changes: 1 addition & 1 deletion core/commanddefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
/**
* Whether the command should be enabled in the {@link CKEDITOR.editor#setReadOnly read-only mode}.
*
* @since 4.0
* @since 4.0.0
* @property {Boolean} [readOnly=false]
*/

Expand Down
8 changes: 4 additions & 4 deletions core/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ CKEDITOR.config = {
*
* config.bodyId = 'contents_id';
*
* @since 3.1
* @since 3.1.0
* @cfg
*/
bodyId: '',
Expand All @@ -245,7 +245,7 @@ CKEDITOR.config = {
*
* **Note:** This setting only applies to {@glink guide/dev_framed classic editor} (the one that uses `iframe`).
*
* @since 3.1
* @since 3.1.0
* @cfg
*/
bodyClass: '',
Expand All @@ -261,7 +261,7 @@ CKEDITOR.config = {
*
* config.fullPage = true;
*
* @since 3.1
* @since 3.1.0
* @cfg
*/
fullPage: false,
Expand Down Expand Up @@ -428,7 +428,7 @@ CKEDITOR.config = {
*
* config.useComputedState = false;
*
* @since 3.4
* @since 3.4.0
* @cfg {Boolean} [useComputedState=true]
*/

Expand Down
8 changes: 4 additions & 4 deletions core/dom/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype, {
* '</html>'
* );
*
* @since 3.5
* @since 3.5.0
* @param {String} html The HTML defining the document content.
*/
write: function( html ) {
Expand All @@ -283,7 +283,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype, {
*
* **Note:** The returned list is not a live collection (like the result of native `querySelectorAll`).
*
* @since 4.3
* @since 4.3.0
* @param {String} selector A valid [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).
* @returns {CKEDITOR.dom.nodeList}
*/
Expand All @@ -295,7 +295,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype, {
* Wrapper for `querySelector`. Returns the first element within this document that matches
* the specified `selector`.
*
* @since 4.3
* @since 4.3.0
* @param {String} selector A valid [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).
* @returns {CKEDITOR.dom.element}
*/
Expand All @@ -308,7 +308,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.document.prototype, {
/**
* Internet Explorer 8 only method. It returns a document fragment which has all HTML5 elements enabled.
*
* @since 4.3
* @since 4.3.0
* @private
* @returns DocumentFragment
*/
Expand Down
2 changes: 1 addition & 1 deletion core/dom/documentfragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype, CKEDITOR.dom.ele
/**
* Gets the HTML of this document fragment's children.
*
* @since 4.5
* @since 4.5.0
* @returns {String} The HTML of this document fragment's children.
*/
getHtml: function() {
Expand Down
6 changes: 3 additions & 3 deletions core/dom/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ CKEDITOR.dom.element.clearMarkers = function( database, element, removeFromDatab
* Method: div.find( 'body i' ) // -> []
* div.find( 'i' ) // -> [ <i>foo</i> ]
*
* @since 4.3
* @since 4.3.0
* @param {String} selector A valid [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).
* @returns {CKEDITOR.dom.nodeList}
*/
Expand Down Expand Up @@ -2056,7 +2056,7 @@ CKEDITOR.dom.element.clearMarkers = function( database, element, removeFromDatab
* Method: div.findOne( 'body i' ) // -> null
* div.findOne( 'i' ) // -> <i>foo</i>
*
* @since 4.3
* @since 4.3.0
* @param {String} selector A valid [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).
* @returns {CKEDITOR.dom.element}
*/
Expand Down Expand Up @@ -2085,7 +2085,7 @@ CKEDITOR.dom.element.clearMarkers = function( database, element, removeFromDatab
* // 5. "bar" text node,
* // 6. "bom" text node.
*
* @since 4.3
* @since 4.3.0
* @param {Function} callback Function to be executed on every node.
* If `callback` returns `false` descendants of the node will be ignored.
* @param {CKEDITOR.htmlParser.node} callback.node Node passed as argument.
Expand Down
4 changes: 2 additions & 2 deletions core/dom/iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
/**
* Default iterator's filter. It is set only for nested iterators.
*
* @since 4.3
* @since 4.3.0
* @readonly
* @property {CKEDITOR.filter} filter
*/
Expand All @@ -79,7 +79,7 @@
* Iterator's active filter. It is set by the {@link #getNextParagraph} method
* when it enters a nested editable.
*
* @since 4.3
* @since 4.3.0
* @readonly
* @property {CKEDITOR.filter} activeFilter
*/
Expand Down
2 changes: 1 addition & 1 deletion core/dom/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.node.prototype, {
* you can temporarily attach this tree to an element with the `data-cke-editable` attribute and use the
* `checkOnlyAttributes` mode.
*
* @since 3.5
* @since 3.5.0
* @param {Boolean} [checkOnlyAttributes=false] If `true`, only attributes will be checked, native methods will not
* be used. This parameter needs to be `true` to check hidden or detached elements. Introduced in 4.5.
* @returns {Boolean}
Expand Down
8 changes: 4 additions & 4 deletions core/dom/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ CKEDITOR.dom.range = function( root ) {
*
* See also: {@link #moveToElementEditablePosition}.
*
* @since 4.3
* @since 4.3.0
* @param {CKEDITOR.dom.element} [element] The starting element. If not specified, the current range
* position will be used.
* @param {Boolean} [isMoveForward] Whether move to the end of editable. Otherwise, look back.
Expand Down Expand Up @@ -2710,15 +2710,15 @@ CKEDITOR.dom.range = function( root ) {
*
* Note: use this method on a collapsed range.
*
* @since 4.3
* @since 4.3.0
* @returns {CKEDITOR.dom.element/CKEDITOR.dom.text}
*/
getNextEditableNode: getNextEditableNode(),

/**
* See {@link #getNextEditableNode}.
*
* @since 4.3
* @since 4.3.0
* @returns {CKEDITOR.dom.element/CKEDITOR.dom.text}
*/
getPreviousEditableNode: getNextEditableNode( 1 ),
Expand All @@ -2729,7 +2729,7 @@ CKEDITOR.dom.range = function( root ) {
* table, but it cannot be two different tables on the same DOM level).
*
* @private
* @since 4.7
* @since 4.7.0
* @param {Object} [tableElements] Mapping of element names that should be considered.
* @returns {CKEDITOR.dom.element/null}
*/
Expand Down
10 changes: 5 additions & 5 deletions core/dom/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
* Returns a function which checks whether the node is a temporary element
* (element with the `data-cke-temp` attribute) or its child.
*
* @since 4.3
* @since 4.3.0
* @static
* @param {Boolean} [isReject=false] Whether to return `false` for the
* temporary element instead of `true` (default).
Expand Down Expand Up @@ -511,7 +511,7 @@
* * bookmarks (see {@link CKEDITOR.dom.walker#bookmark}),
* * temporary elements (see {@link CKEDITOR.dom.walker#temp}).
*
* @since 4.3
* @since 4.3.0
* @static
* @param {Boolean} [isReject=false] Whether to return `false` for the
* ignored element instead of `true` (default).
Expand All @@ -530,7 +530,7 @@
/**
* Returns a function which checks whether the node is empty.
*
* @since 4.5
* @since 4.5.0
* @static
* @param {Boolean} [isReject=false] Whether to return `false` for the
* ignored element instead of `true` (default).
Expand Down Expand Up @@ -568,7 +568,7 @@
* A hash of element names which in browsers that {@link CKEDITOR.env#needsBrFiller do not need `<br>` fillers}
* can be selection containers despite being empty.
*
* @since 4.5
* @since 4.5.0
* @static
* @property {Object} validEmptyBlockContainers
*/
Expand Down Expand Up @@ -617,7 +617,7 @@
* * empty {@link #validEmptyBlockContainers blocks} which can contain text
* ({@link CKEDITOR.env#needsBrFiller old IEs only}).
*
* @since 4.3
* @since 4.3.0
* @static
* @param {Boolean} [isReject=false] Whether to return `false` for the
* ignored element instead of `true` (default).
Expand Down
8 changes: 4 additions & 4 deletions core/editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
/**
* Transforms plain text to HTML based on current selection and {@link CKEDITOR.editor#activeEnterMode}.
*
* @since 4.5
* @since 4.5.0
* @param {String} text Text to transform.
* @returns {String} HTML generated from the text.
*/
Expand Down Expand Up @@ -329,7 +329,7 @@
*
* Fires the {@link CKEDITOR.editor#event-afterInsertHtml} event.
*
* @since 4.5
* @since 4.5.0
* @param {String} data HTML code to be inserted into the editor.
* @param {CKEDITOR.dom.range} range The range as a place of insertion.
* @param {String} [mode='html'] Mode in which HTML will be inserted.
Expand Down Expand Up @@ -652,7 +652,7 @@
/**
* The base of the {@link CKEDITOR.editor#getSelectedHtml} method.
*
* @since 4.5
* @since 4.5.0
* @method getHtmlFromRange
* @param {CKEDITOR.dom.range} range
* @returns {CKEDITOR.dom.documentFragment}
Expand Down Expand Up @@ -687,7 +687,7 @@
* **Note:** The range is modified so it matches the desired selection after extraction
* even though the selection is not made.
*
* @since 4.5
* @since 4.5.0
* @param {CKEDITOR.dom.range} range
* @param {Boolean} [removeEmptyBlock=false] See {@link CKEDITOR.editor#extractSelectedHtml}'s parameter.
* Note that the range will not be modified if this parameter is set to `true`.
Expand Down
Loading

0 comments on commit 9e10d20

Please sign in to comment.