final public void clearFormattingInSelection(RTEditText editor) {
    """
	Remove all effects of this type from the currently selected text of the active RTEditText.
	If the selection is empty (cursor), formatting for the whole text is removed.
    """
        Spannable text = editor.getText();

        // if no selection --> select the whole text
        // otherwise use the getSelection method (implented by sub classes)
        Selection selection = new Selection(editor);
        selection = selection.isEmpty() ? new Selection(0, text.length()) : getSelection(editor);

        List<RTSpan<V>> spans = getSpans(text, selection, SpanCollectMode.EXACT);
        for (Object span : spans) {
            editor.getText().removeSpan(span);
        }
    }
final public void clearFormattingInSelection(RTEditText editor) {
        Spannable text = editor.getText();

        // if no selection --> select the whole text
        // otherwise use the getSelection method (implented by sub classes)
        Selection selection = new Selection(editor);
        selection = selection.isEmpty() ? new Selection(0, text.length()) : getSelection(editor);

        List<RTSpan<V>> spans = getSpans(text, selection, SpanCollectMode.EXACT);
        for (Object span : spans) {
            editor.getText().removeSpan(span);
        }
    }
final public void clearFormattingInSelection ( RTEditText editor ) { Spannable text = editor . getText ( ) ; // if no selection --> select the whole text // otherwise use the getSelection method (implented by sub classes) Selection selection = new Selection ( editor ) ; selection = selection . isEmpty ( ) ? new Selection ( 0 , text . length ( ) ) : getSelection ( editor ) ; List < RTSpan < V > > spans = getSpans ( text , selection , SpanCollectMode . EXACT ) ; for ( Object span : spans ) { editor . getText ( ) . removeSpan ( span ) ; } }
Remove all effects of this type from the currently selected text of the active RTEditText.
If the selection is empty (cursor), formatting for the whole text is removed.
Remove all effects of this type from the currently selected text of the active RTEditText . If the selection is empty ( cursor ) formatting for the whole text is removed .