Commit a591197
authored
Extract the GBK editor parts to a super class (#25166)
* Create a new `PostGBKEditorViewController` super class
* Remove an unused initialiser
* Remove unused parameters
* Move initialiser to the super class
* Add empty `EditorViewControllerDelegate` implementation
* Add empty `PostEditorNavigationBarManagerDelegate` implementation
* Add override keywords
* Move `PostEditorNavigationBarManagerDelegate` implementation
* Add override keywords
* Remove private keyword
* Remove empty override functions
* Move `didUpdateHistoryState` delegate function to the super class
* Move `didLogException` delegate function to the super class
* Move modal dialog delegate functions to the super class
* Move undo redo delegate functions to the super class
* Move keyboard observers to the super class
* Call setupKeyboardObservers in the super class
* Move showSuggestions function to the super class
* Move `didTriggerAutocompleter` to the super class
* Move setting background
* Move deinit to the super class
* Move `setupEditorView()` to the super class
* Move configureNavigationBar to the super class
* Allow overriding `makeMoreMenu`
* Move `loadAuthenticationCookiesAsync` to the super class
* Move `prefetchSuggestionsIfNeeded` to the super class
* Move `refreshInterface` to the super class
* Move the super class to its own file
* Move extension functions out to its own file
* Add missing imports
* Add an extension: `EditorLocalizableString.localized`1 parent 22e143c commit a591197
3 files changed
Lines changed: 538 additions & 455 deletions
File tree
- WordPress/Classes/ViewRelated/NewGutenberg
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments