EMarkdownEditor

EMarkdownEditor

Functions

Signals

void changed Run First
void format-bold Action
void format-bullet-list Action
void format-code Action
void format-header Action
void format-italic Action
void format-numbered-list Action
void format-quote Action
void insert-emoji Action
void insert-link Action

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── EMarkdownEditor

Description

Functions

e_markdown_editor_new ()

GtkWidget *
e_markdown_editor_new (void);

Creates a new EMarkdownEditor

Returns

a new EMarkdownEditor.

[transfer full]

Since: 3.44


e_markdown_editor_connect_focus_tracker ()

void
e_markdown_editor_connect_focus_tracker
                               (EMarkdownEditor *self,
                                EFocusTracker *focus_tracker);

Connects self widgets to the focus_tracker .

Parameters

self

an EMarkdownEditor

 

focus_tracker

an EFocusTracker

 

Since: 3.44


e_markdown_editor_get_text_view ()

GtkTextView *
e_markdown_editor_get_text_view (EMarkdownEditor *self);

Parameters

self

an EMarkdownEditor

 

Returns

a GtkTextView of the self .

[transfer none]

Since: 3.44


e_markdown_editor_get_action_toolbar ()

GtkToolbar *
e_markdown_editor_get_action_toolbar (EMarkdownEditor *self);

Parameters

self

an EMarkdownEditor

 

Returns

a GtkToolbar of the self , where the caller can add its own action buttons.

[transfer none]

Since: 3.44


e_markdown_editor_set_text ()

void
e_markdown_editor_set_text (EMarkdownEditor *self,
                            const gchar *text);

Sets the text as the editor content.

Parameters

text

text to set

 

Since: 3.44


e_markdown_editor_dup_text ()

gchar *
e_markdown_editor_dup_text (EMarkdownEditor *self);

Get the markdown text entered in the self . To get the HTML version of it use e_markdown_editor_dup_html(). Free the returned string with g_free(), when no longer needed.

Parameters

self

an EMarkdownEditor

 

Returns

the markdown text.

[transfer full]

Since: 3.44


e_markdown_editor_dup_html ()

gchar *
e_markdown_editor_dup_html (EMarkdownEditor *self);

Get the HTML version of the markdown text entered in the self . To get the markdown text use e_markdown_editor_dup_text(). Free the returned string with g_free(), when no longer needed.

Note: The function can return NULL when was not built with the markdown support.

Parameters

self

an EMarkdownEditor

 

Returns

the markdown text converted into HTML, or NULL, when was not built with the markdown support.

[transfer full][nullable]

Since: 3.44


e_markdown_editor_get_preview_mode ()

gboolean
e_markdown_editor_get_preview_mode (EMarkdownEditor *self);