diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index cfaefdb344..237c0fb678 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -126,8 +126,9 @@ function ShowHideToolbarButtons() var array = gPrefs.getChildList(kEditorToolbarPrefs); for (var i in array) { var prefName = array[i]; - var id = prefName.substr(kEditorToolbarPrefs.length) + "Button"; - var button = document.getElementById(id); + var id = prefName.substr(kEditorToolbarPrefs.length); + var button = document.getElementById(id + "Button") || + document.getElementById(id + "-button"); if (button) button.hidden = !gPrefs.getBoolPref(prefName); }