client/components/tinymce/plugins/wpcom-view/plugin.js
function replaceMarkers() {
		const markers = $( '.wpview-marker' );

		if ( ! markers.length ) {
			return false;
		}

		markers.each( function( index, node ) {
			let text = editor.dom.getAttrib( node, 'data-wpview-text' ),
				type = editor.dom.getAttrib( node, 'data-wpview-type' );
			editor.dom.replace(
				editor.dom.createFragment(
					'<div class="wpview-wrap" data-wpview-text="' +
						text +
						'" data-wpview-type="' +
						type +
						'">' +
						'<p class="wpview-selection-before">\u00a0</p>' +
						'<div class="wpview-body" contenteditable="false"></div>' +
						'<p class="wpview-selection-after">\u00a0</p>' +
						'</div>'
				),
				node
			);
		} );

		return true;
	}
function replaceMarkers() {
		const markers = $( '.wpview-marker' );

		if ( ! markers.length ) {
			return false;
		}

		markers.each( function( index, node ) {
			let text = editor.dom.getAttrib( node, 'data-wpview-text' ),
				type = editor.dom.getAttrib( node, 'data-wpview-type' );
			editor.dom.replace(
				editor.dom.createFragment(
					'<div class="wpview-wrap" data-wpview-text="' +
						text +
						'" data-wpview-type="' +
						type +
						'">' +
						'<p class="wpview-selection-before">\u00a0</p>' +
						'<div class="wpview-body" contenteditable="false"></div>' +
						'<p class="wpview-selection-after">\u00a0</p>' +
						'</div>'
				),
				node
			);
		} );

		return true;
	}
Replaces all marker nodes tied to this view instance.

@return {boolean} True if the replacement succeeded; false if it failed.