RTEditor/src/main/java/com/onegravity/rteditor/effects/Effect.java
final public boolean existsInSelection(RTEditText editor) {
        Selection selection = getSelection(editor);
        List<RTSpan<V>> spans = getSpans(editor.getText(), selection, SpanCollectMode.SPAN_FLAGS);

        return ! spans.isEmpty();
    }
final public boolean existsInSelection(RTEditText editor) {
        Selection selection = getSelection(editor);
        List<RTSpan<V>> spans = getSpans(editor.getText(), selection, SpanCollectMode.SPAN_FLAGS);

        return ! spans.isEmpty();
    }
Check whether the effect exists in the currently selected text of the active RTEditText.

@param editor The RTEditText we want the check.

@return True if the effect exists in the current selection, False otherwise.