* Shows the editor and hides any textarea/div that the editor is supposed to replace. * * @method show
()
| 657 | * @method show |
| 658 | */ |
| 659 | public show(): void { |
| 660 | const self = this; |
| 661 | |
| 662 | if (self.hidden) { |
| 663 | self.hidden = false; |
| 664 | |
| 665 | if (self.inline) { |
| 666 | self.getBody().contentEditable = 'true'; |
| 667 | } else { |
| 668 | DOM.show(self.getContainer()); |
| 669 | DOM.hide(self.id); |
| 670 | } |
| 671 | |
| 672 | self.load(); |
| 673 | self.dispatch('show'); |
| 674 | } |
| 675 | } |
| 676 | |
| 677 | /** |
| 678 | * Hides the editor and shows any textarea/div that the editor is supposed to replace. |
no test coverage detected