38 | | ^(Describe your design here.)^ |
| 38 | Create a new class InsertHtmlItem that extends AppMenuItem class to provide the html item in the insert menu. |
| 39 | Create a new class HtmlUtility that helps applying the styles from the html document to the resulting HotText.The following methods helps acheiving this: |
| 40 | * applyStyles - applies the styles from a given view to the HotText attribute (recursively). |
| 41 | * getCorrespondingVal - gets the corresponding CommonAttr for a given html attribute and value. |
| 42 | Create HtmlLogic.USER_ADD_HTML_FRAME - the logic for the adding of the html document. It uses the HTMLEditorKit to create a HTMLDocument. |
| 43 | The result is a HotTextBookResource. |