This repository was archived by the owner on Dec 13, 2017. It is now read-only.
Commit 90d690f
Expose a way to make visible or hidden a toolbar item
refs #4427 - In order to be able to hide the “Insert image” button when a WordPress user doesn’t have the upload_files capabilities, I need to be able to set the hidden property of the toolbar button item.
Because of the specifics of the implementation of WPEditorFormatbarView, rather than exposing a UIBarButtonItem* property to be consumed directly by the app, it’s better to provide a helper method that will, similarly to -enableToolbarItem:showSourceButton:, do the work under the hood of the editor itself.1 parent 16e4b80 commit 90d690f
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
192 | 207 | | |
193 | 208 | | |
194 | 209 | | |
| |||
0 commit comments