Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into t/ckeditor5/1655
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Apr 17, 2019
2 parents 3d2c61c + f4ad9f9 commit 28c8d19
Show file tree
Hide file tree
Showing 57 changed files with 213 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/* eslint-env node */
Expand Down
6 changes: 1 addition & 5 deletions .travis.yml
@@ -1,12 +1,8 @@
sudo: required
dist: trusty
addons:
chrome: stable
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
- '8'
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,18 @@
Changelog
=========

## [11.1.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v11.0.0...v11.1.0) (2019-04-10)

### Features

* Marked basic style attributes as a formatting using the `AttributeProperties#isFormatting` property. Closes [ckeditor/ckeditor5#1664](https://github.com/ckeditor/ckeditor5/issues/1664). ([fcfba54](https://github.com/ckeditor/ckeditor5-basic-styles/commit/fcfba54))

### Other changes

* Optimized icons. ([018dda9](https://github.com/ckeditor/ckeditor5-basic-styles/commit/018dda9))
* Updated translations. ([4365251](https://github.com/ckeditor/ckeditor5-basic-styles/commit/4365251))


## [11.0.0](https://github.com/ckeditor/ckeditor5-basic-styles/compare/v10.1.0...v11.0.0) (2019-02-28)

### Other changes
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/features/basic-styles.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/* globals ClassicEditor, console, window, document */
Expand Down
2 changes: 1 addition & 1 deletion docs/_snippets/features/build-basic-styles-source.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/* globals window */
Expand Down
4 changes: 2 additions & 2 deletions lang/translations/ru.po
Expand Up @@ -38,8 +38,8 @@ msgstr "Зачеркнутый"

msgctxt "Toolbar button tooltip for the Subscript feature."
msgid "Subscript"
msgstr ""
msgstr "Подстрочный"

msgctxt "Toolbar button tooltip for the Superscript feature."
msgid "Superscript"
msgstr ""
msgstr "Надстрочный"
45 changes: 45 additions & 0 deletions lang/translations/sr-latn.po
@@ -0,0 +1,45 @@
# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
#
# !!! IMPORTANT !!!
#
# Before you edit this file, please keep in mind that contributing to the project
# translations is possible ONLY via the Transifex online service.
#
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
#
# To learn more, check out the official contributor's guide:
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
#
msgid ""
msgstr ""
"Language-Team: Serbian (Latin) (https://www.transifex.com/ckeditor/teams/11143/sr@latin/)\n"
"Language: sr@latin\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

msgctxt "Toolbar button tooltip for the Bold feature."
msgid "Bold"
msgstr "Podebljano"

msgctxt "Toolbar button tooltip for the Italic feature."
msgid "Italic"
msgstr "Kurziv"

msgctxt "Toolbar button tooltip for the Underline feature."
msgid "Underline"
msgstr "Podvučen"

msgctxt "Toolbar button tooltip for the Code feature."
msgid "Code"
msgstr "Kod"

msgctxt "Toolbar button tooltip for the Strikethrough feature."
msgid "Strikethrough"
msgstr "Precrtan"

msgctxt "Toolbar button tooltip for the Subscript feature."
msgid "Subscript"
msgstr "Index dole"

msgctxt "Toolbar button tooltip for the Superscript feature."
msgid "Superscript"
msgstr "Index gore"
45 changes: 45 additions & 0 deletions lang/translations/sr.po
@@ -0,0 +1,45 @@
# Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
#
# !!! IMPORTANT !!!
#
# Before you edit this file, please keep in mind that contributing to the project
# translations is possible ONLY via the Transifex online service.
#
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
#
# To learn more, check out the official contributor's guide:
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
#
msgid ""
msgstr ""
"Language-Team: Serbian (https://www.transifex.com/ckeditor/teams/11143/sr/)\n"
"Language: sr\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

msgctxt "Toolbar button tooltip for the Bold feature."
msgid "Bold"
msgstr "Подебљано"

msgctxt "Toolbar button tooltip for the Italic feature."
msgid "Italic"
msgstr "Курзив"

msgctxt "Toolbar button tooltip for the Underline feature."
msgid "Underline"
msgstr "Подвучен"

msgctxt "Toolbar button tooltip for the Code feature."
msgid "Code"
msgstr "Код"

msgctxt "Toolbar button tooltip for the Strikethrough feature."
msgid "Strikethrough"
msgstr "Прецртан"

msgctxt "Toolbar button tooltip for the Subscript feature."
msgid "Subscript"
msgstr "Индекс доле"

msgctxt "Toolbar button tooltip for the Superscript feature."
msgid "Superscript"
msgstr "Индекс горе"
16 changes: 8 additions & 8 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@ckeditor/ckeditor5-basic-styles",
"version": "11.0.0",
"version": "11.1.0",
"description": "Basic styles feature for CKEditor 5.",
"keywords": [
"ckeditor",
Expand All @@ -10,15 +10,15 @@
"ckeditor5-plugin"
],
"dependencies": {
"@ckeditor/ckeditor5-core": "^12.0.0",
"@ckeditor/ckeditor5-ui": "^12.0.0"
"@ckeditor/ckeditor5-core": "^12.1.0",
"@ckeditor/ckeditor5-ui": "^12.1.0"
},
"devDependencies": {
"@ckeditor/ckeditor5-editor-classic": "^12.0.0",
"@ckeditor/ckeditor5-engine": "^13.0.0",
"@ckeditor/ckeditor5-essentials": "^11.0.0",
"@ckeditor/ckeditor5-paragraph": "^11.0.0",
"@ckeditor/ckeditor5-utils": "^12.0.0",
"@ckeditor/ckeditor5-editor-classic": "^12.1.0",
"@ckeditor/ckeditor5-engine": "^13.1.0",
"@ckeditor/ckeditor5-essentials": "^11.0.1",
"@ckeditor/ckeditor5-paragraph": "^11.0.1",
"@ckeditor/ckeditor5-utils": "^12.1.0",
"eslint": "^5.5.0",
"eslint-config-ckeditor5": "^1.0.11",
"husky": "^1.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/attributecommand.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/bold.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion src/bold/boldediting.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down Expand Up @@ -28,6 +28,7 @@ export default class BoldEditing extends Plugin {
const editor = this.editor;
// Allow bold attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: BOLD } );
editor.model.schema.setAttributeProperties( BOLD, { isFormatting: true } );

// Build converter from model to view for data and editing pipelines.

Expand Down
2 changes: 1 addition & 1 deletion src/bold/boldui.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/code.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion src/code/codeediting.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down Expand Up @@ -29,6 +29,7 @@ export default class CodeEditing extends Plugin {

// Allow code attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: CODE } );
editor.model.schema.setAttributeProperties( CODE, { isFormatting: true } );

editor.conversion.attributeToElement( {
model: CODE,
Expand Down
2 changes: 1 addition & 1 deletion src/code/codeui.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/italic.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion src/italic/italicediting.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down Expand Up @@ -29,6 +29,7 @@ export default class ItalicEditing extends Plugin {

// Allow italic attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: ITALIC } );
editor.model.schema.setAttributeProperties( ITALIC, { isFormatting: true } );

editor.conversion.attributeToElement( {
model: ITALIC,
Expand Down
2 changes: 1 addition & 1 deletion src/italic/italicui.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/strikethrough.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion src/strikethrough/strikethroughediting.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down Expand Up @@ -30,6 +30,7 @@ export default class StrikethroughEditing extends Plugin {

// Allow strikethrough attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: STRIKETHROUGH } );
editor.model.schema.setAttributeProperties( STRIKETHROUGH, { isFormatting: true } );

editor.conversion.attributeToElement( {
model: STRIKETHROUGH,
Expand Down
2 changes: 1 addition & 1 deletion src/strikethrough/strikethroughui.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/subscript.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion src/subscript/subscriptediting.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down Expand Up @@ -28,6 +28,7 @@ export default class SubscriptEditing extends Plugin {
const editor = this.editor;
// Allow sub attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: SUBSCRIPT } );
editor.model.schema.setAttributeProperties( SUBSCRIPT, { isFormatting: true } );

// Build converter from model to view for data and editing pipelines.

Expand Down
2 changes: 1 addition & 1 deletion src/subscript/subscriptui.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/superscript.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion src/superscript/superscriptediting.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down Expand Up @@ -28,6 +28,7 @@ export default class SuperscriptEditing extends Plugin {
const editor = this.editor;
// Allow super attribute on text nodes.
editor.model.schema.extend( '$text', { allowAttributes: SUPERSCRIPT } );
editor.model.schema.setAttributeProperties( SUPERSCRIPT, { isFormatting: true } );

// Build converter from model to view for data and editing pipelines.

Expand Down
2 changes: 1 addition & 1 deletion src/superscript/superscriptui.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/underline.js
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/**
Expand Down

0 comments on commit 28c8d19

Please sign in to comment.