I'm building a plugin for Craft CMS. This plugin will load on the edit/content page, where the standard Redactor WYSIWYG editor will be loaded too (by CraftCMS). I want to get the HTML/text contents of the Redactor editor.
tinymce.activeEditor.getContent() will get the HTML contents of the TinyMCE editor in WordPress.
How do I achieve this in Craft CMS?
The API documentation says
var text = this.clean.getPlainText(html);.
But how do I know reference to this.