Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-font

Package Overview
Dependencies
Maintainers
1
Versions
700
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-font - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0-beta.1

CHANGELOG.md

15

lang/contexts.json
{
"Font Size": "Tooltip for the font size drop-down.",
"Normal": "Drop-down option label for the normal font size.",
"Tiny": "Drop-down option label for the 'tiny' font size preset.",
"Small": "Drop-down option label for the 'small' font size preset.",
"Big": "Drop-down option label for the 'big' font size preset.",
"Huge": "Drop-down option label for the 'huge' font size preset.",
"Font Family": "Tooltip for the font family drop-down.",
"Default": "Drop-down option label for the default font family."
"Font Size": "Tooltip for the font size dropdown.",
"Tiny": "Dropdown option label for the 'tiny' font size preset.",
"Small": "Dropdown option label for the 'small' font size preset.",
"Big": "Dropdown option label for the 'big' font size preset.",
"Huge": "Dropdown option label for the 'huge' font size preset.",
"Font Family": "Tooltip for the font family dropdown.",
"Default": "Dropdown option label for the default font family."
}
{
"name": "@ckeditor/ckeditor5-font",
"version": "0.0.1",
"version": "1.0.0-beta.1",
"description": "Font feature for CKEditor 5.",

@@ -10,8 +10,11 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-engine": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-ui": "^1.0.0-alpha.2"
"@ckeditor/ckeditor5-core": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-engine": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-ui": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-utils": "^1.0.0-beta.1"
},
"devDependencies": {
"@ckeditor/ckeditor5-paragraph": "^1.0.0-alpha.2",
"@ckeditor/ckeditor5-cloudservices": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-editor-classic": "^1.0.0-beta.1",
"@ckeditor/ckeditor5-paragraph": "^1.0.0-beta.1",
"eslint": "^4.15.0",

@@ -18,0 +21,0 @@ "eslint-config-ckeditor5": "^1.0.7",

@@ -7,3 +7,4 @@ CKEditor 5 font feature

[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-font.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-font)
[![Test Coverage](https://codeclimate.com/github/ckeditor/ckeditor5-font/badges/coverage.svg)](https://codeclimate.com/github/ckeditor/ckeditor5-font/coverage)
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-font/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-font?branch=master)
<br>
[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-font/status.svg)](https://david-dm.org/ckeditor/ckeditor5-font)

@@ -10,0 +11,0 @@ [![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-font/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-font?type=dev)

@@ -11,6 +11,6 @@ /**

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import { attributeToElement } from '@ckeditor/ckeditor5-engine/src/conversion/two-way-converters';
import FontFamilyCommand from './fontfamilycommand';
import { normalizeOptions } from './utils';
import { buildDefinition } from '../utils';

@@ -63,5 +63,6 @@ const FONT_FAMILY = 'fontFamily';

const options = normalizeOptions( editor.config.get( 'fontFamily.options' ) ).filter( item => item.model );
const definition = buildDefinition( FONT_FAMILY, options );
// Set-up the two-way conversion.
attributeToElement( editor.conversion, FONT_FAMILY, options );
editor.conversion.attributeToElement( definition );

@@ -68,0 +69,0 @@ editor.commands.add( FONT_FAMILY, new FontFamilyCommand( editor ) );

@@ -19,3 +19,3 @@ /**

/**
* The font family UI plugin. It introduces the `'fontFamily'` drop-down.
* The font family UI plugin. It introduces the `'fontFamily'` dropdown.
*

@@ -22,0 +22,0 @@ * @extends module:core/plugin~Plugin

@@ -11,6 +11,6 @@ /**

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import { attributeToElement } from '@ckeditor/ckeditor5-engine/src/conversion/two-way-converters';
import FontSizeCommand from './fontsizecommand';
import { normalizeOptions } from './utils';
import { buildDefinition } from '../utils';

@@ -52,5 +52,6 @@ const FONT_SIZE = 'fontSize';

const options = normalizeOptions( this.editor.config.get( 'fontSize.options' ) ).filter( item => item.model );
const definition = buildDefinition( FONT_SIZE, options );
// Set-up the two-way conversion.
attributeToElement( editor.conversion, FONT_SIZE, options );
editor.conversion.attributeToElement( definition );

@@ -57,0 +58,0 @@ // Add FontSize command.

@@ -16,6 +16,8 @@ /**

import { normalizeOptions } from '../fontsize/utils';
import fontSizeIcon from '../../theme/icons/font-size.svg';
import '../../theme/fontsize.css';
/**
* The font family UI plugin. It introduces the `'fontSize'` drop-down.
* The font family UI plugin. It introduces the `'fontSize'` dropdown.
*

@@ -22,0 +24,0 @@ * @extends module:core/plugin~Plugin

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc