RTEditor/src/main/java/com/onegravity/rteditor/RTEditText.java
public void setRichTextEditing(boolean useRTFormatting, boolean autoConvert) {
        assertRegistration();

        if (useRTFormatting != mUseRTFormatting) {
            mUseRTFormatting = useRTFormatting;

            if (autoConvert) {
                RTFormat targetFormat = useRTFormatting ? RTFormat.PLAIN_TEXT : RTFormat.HTML;
                setText(getRichText(targetFormat));
            }

            if (mListener != null) {
                mListener.onRichTextEditingChanged(this, mUseRTFormatting);
            }
        }
    }
public void setRichTextEditing(boolean useRTFormatting, boolean autoConvert) {
        assertRegistration();

        if (useRTFormatting != mUseRTFormatting) {
            mUseRTFormatting = useRTFormatting;

            if (autoConvert) {
                RTFormat targetFormat = useRTFormatting ? RTFormat.PLAIN_TEXT : RTFormat.HTML;
                setText(getRichText(targetFormat));
            }

            if (mListener != null) {
                mListener.onRichTextEditingChanged(this, mUseRTFormatting);
            }
        }
    }
public void setRichTextEditing ( boolean useRTFormatting , boolean autoConvert ) { assertRegistration ( ) ; if ( useRTFormatting != mUseRTFormatting ) { mUseRTFormatting = useRTFormatting ; if ( autoConvert ) { RTFormat targetFormat = useRTFormatting ? RTFormat . PLAIN_TEXT : RTFormat . HTML ; setText ( getRichText ( targetFormat ) ) ; } if ( mListener != null ) { mListener . onRichTextEditingChanged ( this , mUseRTFormatting ) ; } } }
Sets the edit mode to plain or rich text. The text will be converted
automatically to rich/plain text if autoConvert is True.

@param useRTFormatting True if the edit mode should be rich text, False if the edit
mode should be plain text
@param autoConvert     Automatically convert the content to plain or rich text if
this is True
Sets the edit mode to plain or rich text . The text will be converted automatically to rich / plain text if autoConvert is True .