From 56ec14f4071767de11b1e29bb64e0051fa0aaa10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Sun, 17 Jul 2022 20:47:59 +0200 Subject: [PATCH] * Tiny editor --- packages/tinyeditor/libtinyeditor.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/tinyeditor/libtinyeditor.pp diff --git a/packages/tinyeditor/libtinyeditor.pp b/packages/tinyeditor/libtinyeditor.pp new file mode 100644 index 0000000..64a845b --- /dev/null +++ b/packages/tinyeditor/libtinyeditor.pp @@ -0,0 +1,21 @@ +unit libtinyeditor; + +{$mode objfpc} +{$modeswitch externalclass} + +interface + +Uses JS, Web; + +Type + TTinyEditor = class external name 'Object' (TJSObject) + Public + procedure transformToEditor(aElement : TJSHTMLElement); + end; + +var + tinyEditor : TTinyEditor; external name '__tinyEditor'; + +Implementation + +end.