2017-12-20 15 views
0

In HTML5-Version können Transformationsverhältnisse und Schriftarten für Textwerkzeug nicht angepasst werden.Config-SteuerelementeOptionen funktionieren nicht

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 
        } 
       ] 
      } 
     ] 
    } 
}}); 

Aber nichts hat sich geändert. Bitte helfen Sie.

Antwort

0

Fehler gefunden, controlsOptions muss sich im Editor befinden.