| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- /**
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- /**
- * @module special-characters/specialcharacters
- */
- import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
- import SpecialCharacters from './specialcharacters';
- export default class SpecialCharactersMathematical extends Plugin {
- /**
- * @inheritDoc
- */
- static get requires() {
- return [
- SpecialCharacters
- ];
- }
- /**
- * @inheritDoc
- */
- init() {
- this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Mathematical', [
- {
- character: '<',
- title: 'Less-than sign'
- },
- {
- character: '>',
- title: 'Greater-than sign'
- },
- {
- character: '≤',
- title: 'Less-than or equal to'
- },
- {
- character: '≥',
- title: 'Greater-than or equal to'
- },
- {
- character: '–',
- title: 'En dash'
- },
- {
- character: '—',
- title: 'Em dash'
- },
- {
- character: '¯',
- title: 'Macron'
- },
- {
- character: '‾',
- title: 'Overline'
- },
- {
- character: '°',
- title: 'Degree sign'
- },
- {
- character: '−',
- title: 'Minus sign'
- },
- {
- character: '±',
- title: 'Plus-minus sign'
- },
- {
- character: '÷',
- title: 'Division sign'
- },
- {
- character: '⁄',
- title: 'Fraction slash'
- },
- {
- character: '×',
- title: 'Multiplication sign'
- },
- {
- character: 'ƒ',
- title: 'Latin small letter f with hook'
- },
- {
- character: '∫',
- title: 'Integral'
- },
- {
- character: '∑',
- title: 'N-ary summation'
- },
- {
- character: '∞',
- title: 'Infinity'
- },
- {
- character: '√',
- title: 'Square root'
- },
- {
- character: '∼',
- title: 'Tilde operator'
- },
- {
- character: '≅',
- title: 'Approximately equal to'
- },
- {
- character: '≈',
- title: 'Almost equal to'
- },
- {
- character: '≠',
- title: 'Not equal to'
- },
- {
- character: '≡',
- title: 'Identical to'
- },
- {
- character: '∈',
- title: 'Element of'
- },
- {
- character: '∉',
- title: 'Not an element of'
- },
- {
- character: '∋',
- title: 'Contains as member'
- },
- {
- character: '∏',
- title: 'N-ary product'
- },
- {
- character: '∧',
- title: 'Logical and'
- },
- {
- character: '∨',
- title: 'Logical or'
- },
- {
- character: '¬',
- title: 'Not sign'
- },
- {
- character: '∩',
- title: 'Intersection'
- },
- {
- character: '∪',
- title: 'Union'
- },
- {
- character: '∂',
- title: 'Partial differential'
- },
- {
- character: '∀',
- title: 'For all'
- },
- {
- character: '∃',
- title: 'There exists'
- },
- {
- character: '∅',
- title: 'Empty set'
- },
- {
- character: '∇',
- title: 'Nabla'
- },
- {
- character: '∗',
- title: 'Asterisk operator'
- },
- {
- character: '∝',
- title: 'Proportional to'
- },
- {
- character: '∠',
- title: 'Angle'
- },
- {
- character: '¼',
- title: 'Vulgar fraction one quarter'
- },
- {
- character: '½',
- title: 'Vulgar fraction one half'
- },
- {
- character: '¾',
- title: 'Vulgar fraction three quarters'
- }
- ] );
- }
- }
|