@@ -37,7 +37,6 @@ define(function (require, exports, module) {
3737 let livePreviewWasOpen = false ;
3838 let savedSidebarMaxSize = null ;
3939 let applyingCollapsedLayout = false ;
40- let penNibIconHTML = null ;
4140
4241 function _getRenderedSidebarWidth ( ) {
4342 // Use offsetWidth (not jQuery's outerWidth) to force a synchronous reflow
@@ -218,7 +217,6 @@ define(function (require, exports, module) {
218217 const $collapseBtn = $ ( "#ccbCollapseEditorBtn" ) ;
219218 $collapseBtn . toggleClass ( "is-active" , editorCollapsed )
220219 . attr ( "title" , editorCollapsed ? Strings . CCB_SWITCH_TO_CODE_EDITOR : Strings . CCB_SWITCH_TO_DESIGN_MODE ) ;
221- $collapseBtn . html ( editorCollapsed ? '<i class="fa-solid fa-code"></i>' : penNibIconHTML ) ;
222220 if ( _toggleDesignModeCommand ) {
223221 _toggleDesignModeCommand . setChecked ( editorCollapsed ) ;
224222 }
@@ -277,10 +275,6 @@ define(function (require, exports, module) {
277275 $sidebar = $ ( "#sidebar" ) ;
278276 $content = $ ( ".content" ) ;
279277
280- // Cache the authored pen-nib SVG from the DOM so the toggle handler
281- // can restore it after swapping in the fa-code icon for design mode.
282- penNibIconHTML = $ ( "#ccbCollapseEditorBtn" ) . html ( ) ;
283-
284278 _wireButtons ( ) ;
285279 // The HTML titles on the control-bar buttons are fallback English
286280 // strings; set the localized versions up front so the initial render
0 commit comments