diff --git a/core/templates/dev/head/components/CkEditorRteDirective.js b/core/templates/dev/head/components/CkEditorRteDirective.js index 196f2c6db528..e900637c7248 100644 --- a/core/templates/dev/head/components/CkEditorRteDirective.js +++ b/core/templates/dev/head/components/CkEditorRteDirective.js @@ -92,10 +92,16 @@ oppia.directive('ckEditorRte', [ CKEDITOR.plugins.addExternal( 'pre', '/extensions/ckeditor_plugins/pre/', 'plugin.js'); + var startupFocusEnabled = true; + if ( + scope.uiConfig() && + scope.uiConfig().startupFocusEnabled !== undefined) { + startupFocusEnabled = scope.uiConfig().startupFocusEnabled; + } // Initialize CKEditor. var ck = CKEDITOR.inline(el[0].children[0].children[1], { extraPlugins: 'pre,sharedspace,' + pluginNames, - startupFocus: true, + startupFocus: startupFocusEnabled, removePlugins: 'indentblock', title: false, floatSpaceDockedOffsetY: 15, diff --git a/core/templates/dev/head/pages/skill_editor/editor_tab/SkillMisconceptionsEditorDirective.js b/core/templates/dev/head/pages/skill_editor/editor_tab/SkillMisconceptionsEditorDirective.js index 961bf9180b68..de2de7f4549b 100644 --- a/core/templates/dev/head/pages/skill_editor/editor_tab/SkillMisconceptionsEditorDirective.js +++ b/core/templates/dev/head/pages/skill_editor/editor_tab/SkillMisconceptionsEditorDirective.js @@ -94,13 +94,16 @@ oppia.directive('skillMisconceptionsEditor', [ $scope.skill = SkillEditorStateService.getSkill(); $scope.MISCONCEPTION_PROPERTY_FORM_SCHEMA = { type: 'html', - ui_config: {} + ui_config: { + startupFocusEnabled: false + } }; $scope.MISCONCEPTION_FEEDBACK_PROPERTY_FORM_SCHEMA = { type: 'html', ui_config: { - hide_complex_extensions: true + hide_complex_extensions: true, + startupFocusEnabled: false } }; diff --git a/core/templates/dev/head/pages/skill_editor/editor_tab/add_misconception_modal_directive.html b/core/templates/dev/head/pages/skill_editor/editor_tab/add_misconception_modal_directive.html index f578daea91a0..76520a61c2b7 100644 --- a/core/templates/dev/head/pages/skill_editor/editor_tab/add_misconception_modal_directive.html +++ b/core/templates/dev/head/pages/skill_editor/editor_tab/add_misconception_modal_directive.html @@ -22,7 +22,7 @@
- Enter the name for the topic: - -
- Topic name should be less than 20 characters. +