Skip to content

Commit

Permalink
feat: GutenbergKit code editor (#21582)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcalhoun authored Jan 16, 2025
2 parents e69c9d8 + be0696d commit 21f3d59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
25.7
-----
* [**] Send feedback from within the experimental editor "more" options menu. [#21586]
* [**] Support accessing the code editor within the experimental editor. [#21582]

25.6
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1428,10 +1428,7 @@ class EditPostActivity : AppCompatActivity(), EditorFragmentActivity, EditorImag
}
previewMenuItem?.setVisible(showMenuItems)
if (viewHtmlModeMenuItem != null) {
viewHtmlModeMenuItem.setVisible(
(((editorFragment is AztecEditorFragment)
|| (editorFragment is GutenbergEditorFragment))) && showMenuItems
)
viewHtmlModeMenuItem.isVisible = showMenuItems
viewHtmlModeMenuItem.setTitle(
if (htmlModeMenuStateOn) R.string.menu_visual_mode else R.string.menu_html_mode)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ google-play-services-auth = '20.4.1'
google-services = '4.4.2'
gravatar = '2.2.0'
greenrobot-eventbus = '3.3.1'
gutenberg-kit = '55-a490cd3d2d70ad4bba501655f83fdc42b404d502'
gutenberg-kit = 'trunk-cc52214a50893b41898607ac0bff7f2787b085bb'
gutenberg-mobile = 'v1.121.0'
indexos-media-for-mobile = '43a9026f0973a2f0a74fa813132f6a16f7499c3a'
jackson-databind = '2.12.7.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ private void toggleHtmlMode() {
mHtmlModeEnabled = !mHtmlModeEnabled;
mEditorFragmentListener.onTrackableEvent(TrackableEvent.HTML_BUTTON_TAPPED);
mEditorFragmentListener.onHtmlModeToggledInToolbar();
mGutenbergView.setTextEditorEnabled(mHtmlModeEnabled);
}

@Override
Expand Down

0 comments on commit 21f3d59

Please sign in to comment.