Visual editor Bitrix — wrapper content?

Need to be wrapped up any content editable through the visual editor Bitrix in some kind of wrapper.

<div class="custom-content">....</div>

Describe the API of the visual editor are almost there.
The decision based on the event 'OnIncludeHTMLEditorScript' does not work in the Hermitage in the 16th version of Bitrix.

I tried this option. The event fulfills at the opening of the editor. But how to intercept the installation of the content I has not yet been able to find.
BX.addCustomEvent('OnEditorInitedBefore', function (toolbar) {

If who faced, prompt please solution.
July 9th 19 at 11:00
1 answer
July 9th 19 at 11:02
In General, the solution found by myself. If someone will need.

the <script>
 BX.addCustomEvent('OnEditorInitedBefore', function () {
 if (this.config.content.indexOf('<div class="custom-contet">') == -1) {
 this.config.content = '<div class="custom-contet">' + this.config.content + '</div>';

Find more questions by tags 1C-Bitrix