MCPcopy Index your code
hub / github.com/tinymce/tinymce / show

Method show

modules/tinymce/src/core/main/ts/api/Editor.ts:659–675  ·  view source on GitHub ↗

* Shows the editor and hides any textarea/div that the editor is supposed to replace. * * @method show

()

Source from the content-addressed store, hash-verified

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.

Callers 15

EditorTest.tsFile · 0.80
DomUtilsTest.tsFile · 0.80
FakeCaretTest.tsFile · 0.80
showCaretFunction · 0.80
execCommandFunction · 0.80
ShowHideTest.tsFile · 0.80
pOpenDialogAndClickFunction · 0.80
openFunction · 0.80
factoryFunction · 0.80

Calls 5

getBodyMethod · 0.80
getContainerMethod · 0.80
hideMethod · 0.80
dispatchMethod · 0.65
loadMethod · 0.45

Tested by

no test coverage detected