Description

Values

  • cnp_mode - One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.

Getter

Getting elm_entry text paste/drop mode.

Normally the entry allows both text and images to be pasted. This gets the copy & paste mode of the entry.

Setter

Control pasting of text and images for the widget.

Normally the entry allows both text and images to be pasted. By setting cnp_mode to be #ELM_CNP_MODE_NO_IMAGE this prevents images from being copied or pasted. By setting cnp_mode to be #ELM_CNP_MODE_PLAINTEXT this remove all tags in text .

This only changes the behaviour of text.

Signature

@property cnp_mode {
    get {
        values {
            cnp_mode: Elm.Cnp_Mode;
        }
    }
    set {
        values {
            cnp_mode: Elm.Cnp_Mode;
        }
    }
}

C signature

Elm_Cnp_Mode efl_ui_text_cnp_mode_get(const Eo *obj);
void efl_ui_text_cnp_mode_set(Eo *obj, Elm_Cnp_Mode cnp_mode);

Implemented by

  • Efl.Ui.Text.cnp_mode