File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
package/src/editor/initializers Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,14 @@ app.addInitializer(function(options) {
8585 }
8686 } ;
8787
88+ var altConfigurationEditorInput = {
89+ name : 'alt' ,
90+ inputView : TextInputView ,
91+ inputViewOptions : {
92+ maxLength : 5000
93+ }
94+ } ;
95+
8896 editor . fileTypes . register ( 'image_files' , {
8997 model : ImageFile ,
9098 metaDataAttributes : [
@@ -93,10 +101,7 @@ app.addInitializer(function(options) {
93101 ] ,
94102 matchUpload : / ^ i m a g e / ,
95103 configurationEditorInputs : [
96- {
97- name : 'alt' ,
98- inputView : TextInputView
99- }
104+ altConfigurationEditorInput
100105 ]
101106 } ) ;
102107
@@ -111,10 +116,7 @@ app.addInitializer(function(options) {
111116 ] ,
112117 matchUpload : / ^ v i d e o / ,
113118 configurationEditorInputs : [
114- {
115- name : 'alt' ,
116- inputView : TextInputView
117- }
119+ altConfigurationEditorInput
118120 ] ,
119121 settingsDialogTabs : [
120122 textTracksSettingsDialogTab
@@ -131,10 +133,7 @@ app.addInitializer(function(options) {
131133 ] ,
132134 matchUpload : / ^ a u d i o / ,
133135 configurationEditorInputs : [
134- {
135- name : 'alt' ,
136- inputView : TextInputView
137- }
136+ altConfigurationEditorInput
138137 ] ,
139138 settingsDialogTabs : [
140139 textTracksSettingsDialogTab
You can’t perform that action at this time.
0 commit comments