feat: Add multi device support for mobile in word cloud (#27386)

Enable mobile support on word cloud xblock

LEARNER-8319
This commit is contained in:
jawad khan
2021-05-17 07:49:33 +05:00
committed by GitHub
parent 286dd8d03c
commit 17906d6770

View File

@@ -13,6 +13,7 @@ import logging
from pkg_resources import resource_string
from web_fragments.fragment import Fragment
from xblock.core import XBlock
from xblock.fields import Boolean, Dict, Integer, List, Scope, String
from xmodule.editing_module import EditingMixin
from xmodule.raw_module import EmptyDataRawMixin
@@ -272,6 +273,7 @@ class WordCloudBlock( # pylint: disable=abstract-method
'error': 'Unknown Command!'
})
@XBlock.supports('multi_device')
def student_view(self, context): # lint-amnesty, pylint: disable=unused-argument
"""
Renders the output that a student will see.