HTML Kit site requirements.

HTML editor / Support Document
HomeHTML-Kit downloadsAdd-ins that update and extend HTML-Kit's capabilitiesSoftware and authoring support channelsRegister -- download add-ons and support HTML-KitOnline tools for HTML-Kit users
 

Support Document

 Home > Support > Support Documents > Plugins > How to: Get the full tex...
 
 
How to: Get the full text in the editor using a hkScript plugin
The information in this document applies to:
 Summary

The code in this document demonstrates how to write a plugin in hkScript to retrieve the full text in the current editor.
 
 Details
function hkp_Main(pDataIn, pDataOut)
{
  var sFullText = "";
  if( hkp_DataGet(pDataIn, "INPUT", &sFullText) )
  {
    // sFullText = full text in the editor
  }
}

function hkp_Register(pDataIn, pDataOut)
{
  hkp_DataSetGlobalSuffix("_1");
  hkp_DataAdd(pDataOut, "NAME", "demoGetFullText");
  hkp_DataAdd(pDataOut, "SECTION", "MyPlugins");
  hkp_DataAddInt(pDataOut, "MODE_IN_TEXT_FULL", 1);
  hkp_DataSetGlobalSuffix("");
}
 
 
 
Document ID: H000116
Reviewed On: 03-Apr-2001
THE INFORMATION IN THIS DOCUMENT IS PROVIDED ON AN AS-IS BASIS WITHOUT WARRANTY OF ANY KIND. PROVIDER SPECIFICALLY DISCLAIMS ANY OTHER WARRANTY, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL PROVIDER BE LIABLE FOR ANY CONSEQUENTIAL, INDIRECT, SPECIAL OR INCIDENTAL DAMAGES, EVEN IF PROVIDER HAS BEEN ADVISED BY "USER" OF THE POSSIBILITY OF SUCH POTENTIAL LOSS OR DAMAGE. "USER" AGREES TO HOLD PROVIDER HARMLESS FROM AND AGAINST ANY AND ALL CLAIMS, LOSSES, LIABILITIES AND EXPENSES.