HTMLEditUI

This is a full HTML editor.

Parameters

none

Attributes

  • getF( get: ()=>string) – sets the get function that will return the HTML to be edited.
  • setF( set: (newHTML:string)=>void) – this defines the set function that is called whenever the html has been edited. There is timing mechanism to wait for a short time between inputs before actually calling this. This technique reduces the total number of times this must be called.

Examples

let saveHTML:string = null;
new HTMLEditUI()
     .getF(()=>{
          if (saveHTML)
              return saveHTML;
          else {
              saveHTML = read html from a file
              return saveHTML;
          }
     })
     .setF((newHTML:string)=>{
          saveHTML=newHTML;
          write saveHTML out to a file.
     })

Styling

  • HTMLEditUI – the default styling for the entire editor block.
  • HTMLEditUI-html – the default styling for the html to be edited.