13 Commits
Author SHA1 Message Date
Tom Z?hner ed4fc8fea3 Update dependencies 2022-04-18 11:37:49 +02:00
Tom Z?hner a295d3b31b Remove remaining jQuery dependencies 2020-03-21 21:11:52 +01:00
Tom Z?hner 000d81c942 Update dependencies 2020-01-04 16:49:44 +01:00
zoehneto 136ef8caf4 Update to typescript 2.8 2018-03-29 15:41:56 +02:00
zoehneto 5263db8088 Publish typings with npm package 2018-03-29 11:18:11 +02:00
Tom Z?hner 32cf4d0565 Bundle with webpack 2018-03-24 15:43:46 +01:00
Tom Z?hner d2bc501ba4 Enable noImplicitThis 2018-03-04 18:10:37 +01:00
Tom Z?hner 01947e07a1 Enable stricter type checking 2018-03-04 17:37:56 +01:00
Tom Z?hner bdfb0831f6 Import WMFJS and EMFJS 2018-03-04 16:27:48 +01:00
Warren R Bank 5bb7eb613b add support for RTFs that import images from external files
ex:
===
  {\field {\*\fldinst import image.WMF}}
  {\field {\*\fldinst import image.EMF}}

where:
======
* "image.WMF" is a relative URL path
* the external files are not read by the library
* a new hook function is added to the "settings" Object
  that is passed to the "RTFJS.Document()" constructor
  * "settings.onImport(relURL, cb)"
  * this hook function is responsible for:
    * reading data from the external file @ "relURL" into a blob
    * mapping the file extension to a "keyword" (ex: "wmetafile")
    * passing this information to the callback function with the desired height
      * cb({keyword, blob, height})

demo:
=====
  samples/04_rtf_imports/rtf.html
2018-02-24 16:39:34 +01:00
Tom Z?hner 00c0846375 Only keep bundles in dist 2018-02-24 00:06:34 +01:00
Tom Z?hner 0cb8a871d6 Generate sourcemaps 2018-02-24 00:06:34 +01:00
Tom Z?hner c97d45db63 Initial typescript conversion of rtf.js 2018-02-24 00:06:34 +01:00