CreativeSDK / phonegap-plugin-csdk-image-editor

A PhoneGap plugin for the Creative SDK Image Editor.
Apache License 2.0
35 stars 15 forks source link

Did anybody got to use it with Ionic 2/TypeScript? #26

Closed esl-douglas closed 7 years ago

esl-douglas commented 7 years ago

Expected Behaviour

Open the editor

Actual Behaviour

Cannot find name 'CSDKImageEditor'

Reproduce Scenario (including but not limited to)

Ionic 2 with creativeSDK plugin

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Web

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Web

PhoneGap CLI version and PhoneGap platform version

Ionic 2.1.18

Plugin version

1.0.0

Sample Code that illustrates the problem

Logs taken while reproducing problem

macdonst commented 7 years ago

@esl-douglas only supported on Android and iOS not the web platform.

tomsun commented 7 years ago

@esl-douglas TypeScript assumes such a global variable is not defined probably. Try this inline: const CSDKImageEditor = window['CSDKImageEditor'];. Or write a typedef file...