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 .