2017-12-20 2 views
0

HTML5バージョンでは、テキストツールの変換比率とフォントをカスタマイズできません。Config controlsOptions not working

var editor = new PhotoEditorSDK.UI.DesktopUI({ 
controlsOptions: { 
    transform: { 
     availableRatios: [ 
      'imgly_transform_common_custom', 
      'imgly_transform_common_square', 
      'imgly_transform_common_4-3', 
      'imgly_transform_common_16-9' 
     ] 
    }, 
    text: { 
     replaceFonts: true, 
     fonts: [ 
      { 
       fontFamily: 'Alegreya', // The font family name, defined by Google Fonts 
       variations: [ 
        { 
         identifier: 'alegreya', 
         provider: 'google' // This loads the font from Google Fonts 
        } 
       ] 
      } 
     ] 
    } 
}}); 

何も変更されていません。助けてください。

答えて

0

エラーが見つかりました。controlsOptionsはエディタオブジェクト内にある必要があります。