@@ -233,12 +233,16 @@ var Wodo = Wodo || (function () {
233233 instanceCounter = instanceCounter + 1 ;
234234
235235 /**
236- * Returns true if either all features are wanted and this one is not explicitely disabled
237- * or if not all features are wanted by default and it is explicitely enabled
238- * @param {?boolean|undefined } isFeatureEnabled explicit flag which enables a feature
239- * @return {!boolean }
240- */
241- function isEnabled ( isFeatureEnabled ) {
236+ * Returns true if either all features are wanted and this one is not explicitely disabled
237+ * or if not all features are wanted by default and it is explicitely enabled
238+ * @param {?boolean|undefined } isFeatureEnabled explicit flag which enables a feature
239+ * @param {!boolean= } isUnstable set to true if the feature is not stable (in collab mode)
240+ * @return {!boolean }
241+ */
242+ function isEnabled ( isFeatureEnabled , isUnstable ) {
243+ if ( isUnstable && ! editorOptions . unstableFeaturesEnabled ) {
244+ return false ;
245+ }
242246 return editorOptions . allFeaturesEnabled ? ( isFeatureEnabled !== false ) : isFeatureEnabled ;
243247 }
244248
@@ -283,7 +287,7 @@ var Wodo = Wodo || (function () {
283287 paragraphStyleEditingEnabled = isEnabled ( editorOptions . paragraphStyleEditingEnabled ) ,
284288 imageEditingEnabled = isEnabled ( editorOptions . imageEditingEnabled ) ,
285289 hyperlinkEditingEnabled = isEnabled ( editorOptions . hyperlinkEditingEnabled ) ,
286- listEditingEnabled = isEnabled ( editorOptions . listEditingEnabled ) ,
290+ listEditingEnabled = isEnabled ( editorOptions . listEditingEnabled , true ) ,
287291 reviewModeEnabled = Boolean ( editorOptions . reviewModeEnabled ) , // needs to be explicitly enabled
288292 annotationsEnabled = reviewModeEnabled || isEnabled ( editorOptions . annotationsEnabled ) ,
289293 undoRedoEnabled = isEnabled ( editorOptions . undoRedoEnabled ) ,
0 commit comments