libtinyeditor.pp 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. This file is part of the Pas2JS run time library.
  3. Copyright (C) 2023 Michael Van Canneyt
  4. tinyeditor import unit
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$IFNDEF FPC_DOTTEDUNITS}
  12. unit libtinyeditor;
  13. {$ENDIF}
  14. {$mode objfpc}
  15. {$modeswitch externalclass}
  16. interface
  17. Uses
  18. {$IFDEF FPC_DOTTEDUNITS}
  19. JSApi.JS, BrowserApi.Web;
  20. {$ELSE}
  21. JS, Web;
  22. {$ENDIF}
  23. Type
  24. TTinyEditor = class external name 'Object' (TJSObject)
  25. Public
  26. procedure transformToEditor(aElement : TJSHTMLElement);
  27. end;
  28. var
  29. tinyEditor : TTinyEditor; external name '__tinyEditor';
  30. Implementation
  31. end.