code: function ( event ) {
  			if ( ! focusArea ) {
  				return;
  			}
  			var style = myStyles [ event.target.styleRange ];
  			var bDouble = style.HTMLAfter && 0 < style.HTMLAfter.length;
  			var selectionStart = focusArea.selectionStart;
  			var selectionEnd = focusArea.selectionEnd;
  			var oldText = focusArea.value;
  			focusArea.value = oldText.substring ( 0, selectionStart ) + 
  				( bDouble ? style.HTMLBefore + oldText.substring ( selectionStart, selectionEnd ) + style.HTMLAfter : style.HTMLBefore ) + 
  				oldText.substring ( selectionEnd );
  			focusArea.setSelectionRange ( 
  				bDouble || selectionStart === selectionEnd ? selectionStart + style.HTMLBefore.length : selectionStart,
  				( bDouble ? selectionEnd : selectionStart ) + style.HTMLBefore.length );
  			focusArea.focus ( );
  		}
docs: /* --- private methods ---