Class humhub\widgets\RichText

Inheritancehumhub\widgets\RichText » humhub\modules\content\widgets\richtext\HumHubRichText » humhub\modules\content\widgets\richtext\AbstractRichText » humhub\widgets\JsWidget » humhub\components\Widget » yii\base\Widget
Deprecated since version since 1.3 this is the legacy rich text implementation which won't be maintained in the future.

RichText

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$container string Html container element. humhub\widgets\JsWidget
$content string Html content. humhub\widgets\JsWidget
$edit boolean Enables the edit rendering mode humhub\modules\content\widgets\richtext\AbstractRichText
$encode boolean humhub\modules\content\widgets\richtext\AbstractRichText
$events [] humhub\widgets\JsWidget
$exclude array Can be used to exclude specific plugins from the set of defaults (preset) humhub\modules\content\widgets\richtext\AbstractRichText
$fadeIn boolean|string|integer humhub\widgets\JsWidget
$id string humhub\widgets\JsWidget
$include array Can be used to explicitly include specific plugins in addition to the set of defaults (preset) humhub\modules\content\widgets\richtext\AbstractRichText
$init mixed humhub\widgets\JsWidget
$jsWidget string humhub\widgets\JsWidget
$markdown boolean Defines if this rich text is also used as client side markdown text. humhub\modules\content\widgets\richtext\AbstractRichText
$maxLength integer Setting used to truncate the rich text content, usually related to $minimal mode and used for previews humhub\modules\content\widgets\richtext\AbstractRichText
$minimal boolean Enables the minimal rendering mode used for example for previews, this mode should take the \humhub\modules\content\widgets\richtext\maxLenght setting into account for truncating the preview content. humhub\modules\content\widgets\richtext\AbstractRichText
$options humhub\widgets\JsWidget
$pluginOptions array Rich text plugin settings. humhub\modules\content\widgets\richtext\AbstractRichText
$preset string Defines a preset of rich text features and settings humhub\modules\content\widgets\richtext\AbstractRichText
$record mixed Can be used to identify the related record humhub\modules\content\widgets\richtext\AbstractRichText
$render boolean If set to false this widget won't be rendered humhub\components\Widget
$text string Text to display humhub\modules\content\widgets\richtext\AbstractRichText
$visible boolean humhub\widgets\JsWidget
$widgetLayout string Defines an optional layout humhub\components\Widget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
editorWidget() humhub\modules\content\widgets\richtext\AbstractRichText
getEditorClass() humhub\modules\content\widgets\richtext\AbstractRichText
getId() Returns the html id of this widget, if no id is set this function will generate an id if $autoGenerate is set to true (default). humhub\widgets\JsWidget
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
getProcessor() humhub\modules\content\widgets\richtext\AbstractRichText
getProcessorClass() humhub\modules\content\widgets\richtext\AbstractRichText
init() humhub\modules\content\widgets\richtext\AbstractRichText
output() Renders the given text by means of the given config. humhub\modules\content\widgets\richtext\AbstractRichText
postProcess() Used for the post-processing of the rich text, normally called within humhub\modules\content\components\ContentActiveRecord::afterSave() of the related humhub\modules\content\components\ContentActiveRecord. humhub\modules\content\widgets\richtext\AbstractRichText
preview() Renders the given text in minimal render mode truncated by the maxLength parameter. humhub\modules\content\widgets\richtext\AbstractRichText
process() Process is a wrapper for the run method humhub\components\Widget
run() Default implementation of JsWidget. humhub\widgets\JsWidget
setDefaultOptions() Sets some default data options required by all widgets as the widget implementation and the widget events and initialization trigger. humhub\widgets\JsWidget
translateEmojis() Replace emojis from text to img tag humhub\modules\content\widgets\richtext\HumHubRichText
translateMentioning() Translate guids from users to username humhub\modules\content\widgets\richtext\HumHubRichText
translateOembed() Parses for links and checks if they are embedable by oembed. humhub\modules\content\widgets\richtext\HumHubRichText
widget() Creates a widget instance and runs it. humhub\components\Widget

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getAttributes() Returns all html attributes for used by this widget and will normally inserted in the widgets root html element. humhub\widgets\JsWidget
getData() Returns an array of data-* attributes to configure your clientside js widget. humhub\widgets\JsWidget
getOptions() Assembles all widget attributes and data settings of this widget. humhub\widgets\JsWidget

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_BEFORE_OUTPUT \humhub\modules\search\events\ParameterEvent With parameter 'output' humhub\modules\content\widgets\richtext\AbstractRichText
EVENT_CREATE humhub\libs\WidgetCreateEvent An event raised before creating a widget. humhub\components\Widget
EVENT_POST_PROCESS humhub\components\Event An event raised after the post-process phase of the rich text. humhub\modules\content\widgets\richtext\AbstractRichText

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
PRESET_DOCUMENT 'document' humhub\modules\content\widgets\richtext\AbstractRichText