From 02ef654a7711462105bb9277dccabacffe5523aa Mon Sep 17 00:00:00 2001 From: Shabab Karim Date: Mon, 25 Oct 2021 03:25:39 +0600 Subject: [PATCH] Added default value to useComputedState in the CKEDITOR config object Issue #4918 --- core/config.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/core/config.js b/core/config.js index 7bf6e36f4f7..d5b6ee63aac 100644 --- a/core/config.js +++ b/core/config.js @@ -369,6 +369,22 @@ CKEDITOR.config = { */ tabIndex: 0, + /** + * Indicates that some of the editor features, like alignment and text + * direction, should use the "computed value" of the feature to indicate its + * on/off state instead of using the "real value". + * + * If enabled in a Left-To-Right written document, the "Left Justify" + * alignment button will be shown as active, even if the alignment style is not + * explicitly applied to the current paragraph in the editor. + * + * config.useComputedState = false; + * + * @since 3.4.0 + * @cfg {Boolean} [useComputedState=true] + */ + useComputedState: true, + /** * The editor UI outer width. This configuration option accepts an integer * (to denote a value in pixels) or any CSS-defined length unit. @@ -418,21 +434,6 @@ CKEDITOR.config = { ] }; -/** - * Indicates that some of the editor features, like alignment and text - * direction, should use the "computed value" of the feature to indicate its - * on/off state instead of using the "real value". - * - * If enabled in a Left-To-Right written document, the "Left Justify" - * alignment button will be shown as active, even if the alignment style is not - * explicitly applied to the current paragraph in the editor. - * - * config.useComputedState = false; - * - * @since 3.4.0 - * @cfg {Boolean} [useComputedState=true] - */ - /** * The base user interface color to be used by the editor. Not all skins are * {@glink guide/skin_sdk_chameleon compatible with this setting}.