![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/plugins/block-options/src/extensions/formats/ |
/** * Internal dependencies */ import { justify } from './justify'; import { backgroundColor } from './background-color'; import { markdown } from './markdown'; import { clear } from './clear'; import { uppercase } from './uppercase'; import { link } from './link'; import { alignment } from './alignment'; import { nbsp } from './nbsp'; import { abbreviation } from './abbreviation'; import { underline } from './underline'; import { increaseIndent } from './indent-increase'; import { decreaseIndent } from './indent-decrease'; import { charmap } from './charmap'; /** * WordPress dependencies */ const { registerFormatType } = wp.richText; const { select } = wp.data; const isDisabled = select( 'core/edit-post' ).isFeatureActive( 'disableEditorsKitLinkFormats' ); function registerEditorsKitFormats() { [ justify, backgroundColor, markdown, clear, uppercase, alignment, nbsp, abbreviation, underline, increaseIndent, decreaseIndent, charmap, ! isDisabled ? link : [], ].forEach( ( { name, ...settings } ) => { if ( name ) { registerFormatType( name, settings ); } } ); } wp.domReady( registerEditorsKitFormats );