#include <Ext/TextEdit>

Public Member Functions | |
| TextEdit (WContainerWidget *parent=0) | |
| Create a rich text editor with empty text. | |
| TextEdit (const WString &text, WContainerWidget *parent=0) | |
| Create a rich text editor initialized with the given HTML text. | |
| void | setText (const WString &value) |
| Set the text. | |
| const WString & | text () const |
| Return the text. | |
| void | setLinkDefault (const WString &text, const WString &location) |
| Set the default location and link text used when inserting a link. | |
| void | setEnableAlignments (bool enable) |
| Enable or disable alignment buttons. | |
| void | setEnableColors (bool enable) |
| Enable or disable changing of text color. | |
| void | setEnableFont (bool enable) |
| Enable or disable changing of text font. | |
| void | setEnableFormat (bool enable) |
| Enable or disable changing of text formatting. | |
| void | setEnableLinks (bool enable) |
| Enable or disable insertion of links. | |
| void | setEnableLists (bool enable) |
| Enable or disable insertion of lists. | |
| void | setEnableSourceEdit (bool enable) |
| Enable or disable a view which shows the raw HTML source. | |
| virtual void | resize (const WLength &width, const WLength &height) |
| Resizes the widget. | |
| virtual WValidator::State | validate () |
| Validate the field. | |
A rich-text editor that provides interactive editing of HTML, including basic mark-up (font, formatting, color, links, and lists).
TextEdit
Resizes the widget.
Specify a new size for this widget, by specifying width and height. By default a widget has automatic width and height, see WLength::isAuto().
This applies to CSS-based layout, and only block widgets can be given a size reliably.
When inserted in a layout manager, the widget may be informed about its current size using setLayoutSizeAware(). If you have defined a "wtResize()" JavaScript method for the widget, then this method will also be called. operation.
Reimplemented from Wt::WWebWidget.
1.5.6