Rich Text Edit

From Documentation
Revision as of 09:07, 21 August 2014 by Raymondchao (talk | contribs)


WarningTriangle-32x32.png This page is under construction, so we cannot guarantee the accuracy of the content!

Available in ZK Spreadsheet EE only

since 3.5.1

Spreadsheet allows user to edit cell text with rich text format, it provides a built-in WYSIWYG (“what you see is what you get”) editor to help user enter and format text. Besides, user can set rich text via Spreadshweet's API as well.


Edit Rich Text within WYSIWYG Editor

Using WYSIWYG editor is easy, just right click on the cell to open context menu and click "Rich Text Edit".

EditRichText.png

Then you can edit rich text within WYSIWYG editor

Richtextbox.png

The result will be like:

RichText.png

Set Rich Text via API

Range API allows you to get or set rich text in html format of a cell:

public void setCellRichText(String html);

public String getCellRichText();

For example, the screenshot below is application that can get and set rich text of a cell.

RichTextAPI.png


All source code listed in this book is at Github.


Last Update : 2014/08/21

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.