Features

Here are the list of features.

Mode

The editor can be set into a read-only mode, by changing the value of the Config#mode property. Following are types of mode: 1. read 2. edit 3. review - read The read mode is a feature within the editor that allows users to see the editor. But you cannot edit it. Here’s the configuration:

"config": {
   mode: 'read',
}
"config": {
   mode: 'edit',
}
"config": {  
    mode: 'review',
}
"config": {  
    mode: 'review',
    editableFields: {
        "review": ["title" ]
    }
}
Media Upload Config

Media Config sets the max size limit for images to be uploaded in the collection editor and the type of images. Here is the configuration:

"config": {  
    assetConfig: {
        "image": {
            "size": 1,
            "sizeType": "MB",
            "accepted": "png, jpeg"
        }
    }
}
Organize TOC

The maximum number of levels in the collection has to be defined using the maxDepth property. This has to be updated in the object metadata of the primary category definition under hierarchy. maxDepth defines the level of collection i.e at which level content is to be linked. If maxDepth is set as 0, Add from library button gets enabled at the root node.

"config": {
  children: {  
    "Content": [
      "Explanation Content",
      "Learning Resource",
      "eTextbook",
      "Teacher Resource",
      "Course Assessment"
    ],
    "QuestionSet": [
        "Practice Question Set"
      ]
    }
  }
}

If the maxDepth is set as 1, we need to define hierarchy object also. Here is the default value of hierarchy we are using, you can change the name of level and children also. Here is the configuration:

"config": {  
  "hierarchy": {
      "level1": {
        "name": "Textbook Unit",
        "type": "Unit",
        "mimeType": "application/vnd.ekstep.content-collection",
        "contentType": "TextBookUnit",
        "primaryCategory": "Textbook Unit",
        "iconClass": "fa fa-folder-o",
        "children": {
          "Content": [
            "Explanation Content",
            "Learning Resource",
            "eTextbook",
            "Teacher Resource",
            "Course Assessment"
          ],
          "QuestionSet": []
        }
      }
   }
}
Collaboration

This feature allow us to share the collection with other users so they can contribure back to the same collection. To enables the add collaborator option in the collection editor. With which creator can as select the collaborate to contribute to the same collection. Here is the configuration:

"config": {  
    showAddCollaborator: true,
}
Content policy URL

It defines where should the content policy link should be redirected. This popup will get appear on click of submit for review button. Here is the configuration:

"config": {  
    contentPolicyUrl: "/term-of-use.html"
}
icon
Add from library

This feature allows us to link content to any unit/level from the add from library page. Here's the sample configuration:

config: {
      mode: 'edit',
      maxDepth: 2,
      objectType: 'Collection',
      primaryCategory: 'Digital Textbook',
      isRoot: true,
      iconClass: 'fa fa-book',
      children: {},
      hierarchy: {
          level1: {
              name: 'Textbook Unit',
              type: 'Unit',
              mimeType: 'application/vnd.ekstep.content-collection',
              contentType: 'TextBookUnit',
              primaryCategory: 'Textbook Unit',
              iconClass: 'fa fa-folder-o',
              children: {
                Content: [
                  'Explanation Content',
                  'Learning Resource',
                  'eTextbook',
                  'Teacher Resource',
                  'Course Assessment'
                ]
              }
          },
          level2: {
              name: 'Textbook Unit',
              type: 'Unit',
              mimeType: 'application/vnd.ekstep.content-collection',
              contentType: 'TextBookUnit',
              primaryCategory: 'Textbook Unit',
              iconClass: 'fa fa-folder-o',
              children: {
                Content: [
                  'Explanation Content',
                  'Learning Resource',
                  'eTextbook',
                  'Teacher Resource',
                  'Course Assessment'
                ]
              }
          }
      }
  }

Following are the configuration for add from library page: 1. Max content limit This defines the maximum number of content to be created in a collection. Here is the configuration:

"config": {  
    collection: {
      maxContentsLimit: 8,
    }
}
children: {
  Content: [
   'Explanation Content',
   'Learning Resource',
   'eTextbook',
   'Teacher Resource',
   'Course Assessment'
  ]
 }
Review comment

Last updated