lib/YuiRestClient/Widget/RichText.pm

NAME

YuiRestClient::Widget::RichText - handle rich text objects

COPYRIGHT

Copyright 2020 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE Yam <qe-yam at suse de>

SYNOPSIS

return $self->{rt_welcome}->text();

return $self->{rt_items}->activate_link($module_full_name);

DESCRIPTION

Overview

Class to work with YRichText objects. Rich text objects are

{
     "class": "YRichText",
     "enabled": false,
     "hstretch": true,
     "id": "test",
     "text": "<small>Select something here</small>",
     "vstretch": true,
     "vweight": 25
}

Class and object methods

text() - return the value of the "text" property.

activate_link($link) - activates a link in the rich text

If the rich text field contains a link, then this link can be activated with this function.