tao-test/app/taoQtiItem/views/js/qtiCreator/model/interactions/ExtendedTextInteraction.js

31 lines
863 B
JavaScript
Raw Normal View History

2022-08-29 20:14:13 +02:00
define([
'lodash',
'taoQtiItem/qtiCreator/model/mixin/editable',
'taoQtiItem/qtiCreator/model/mixin/editableInteraction',
'taoQtiItem/qtiItem/core/interactions/ExtendedTextInteraction'
], function(_, editable, editableInteraction, Interaction){
"use strict";
var methods = {};
_.extend(methods, editable);
_.extend(methods, editableInteraction);
_.extend(methods, {
getDefaultAttributes : function(){
return {
format: 'plain'
};
},
afterCreate : function(){
this.createResponse({
baseType: 'string',
cardinality: 'single'
});
},
createChoice : function(){
throw "extendedTextInteraction does not have any choices";
}
});
return Interaction.extend(methods);
});