Skip to content

Commit 4cb5a8c

Browse files
committed
Add format button toggle method
1 parent 4039735 commit 4cb5a8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/toolbar/AztecToolbar.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,12 @@ class AztecToolbar : FrameLayout, OnMenuItemClickListener {
322322
}
323323
}
324324

325+
fun toggleFormatButtons(isEnabled: Boolean) {
326+
ToolbarAction.values().forEach { action ->
327+
toggleButtonState(findViewById(action.buttonId), isEnabled)
328+
}
329+
}
330+
325331
private fun showMediaUploadDialog() {
326332
if (!isEditorAttached()) return
327333

0 commit comments

Comments
 (0)