@instructure/canvas-rce 5.6.3 → 5.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/coverage/canvas-rce-jest.xml +1688 -1620
- package/coverage/canvas-rce-junit.xml +409 -409
- package/es/enhance-user-content/enhance_user_content.js +7 -2
- package/es/enhance-user-content/instructure_helper.js +10 -2
- package/es/rce/RCEWrapper.js +7 -4
- package/es/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/es/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/es/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/es/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/es/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/es/rce/tinyRCE.js +1 -0
- package/lib/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/enhance-user-content/instructure_helper.js +10 -2
- package/lib/rce/RCEWrapper.js +7 -4
- package/lib/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/rce/tinyRCE.js +1 -0
- package/lib/translated/ar/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/ar/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/ar/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/ar/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/ar/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/ca/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/ca/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/ca/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/ca/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/ca/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/cy/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/cy/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/cy/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/cy/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/cy/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/da/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/da/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/da/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/da/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/da/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/da-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/da-x-k12/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/da-x-k12/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/da-x-k12/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/da-x-k12/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/de/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/de/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/de/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/de/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/de/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/el/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/el/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/el/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/el/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/el/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en-AU-x-unimelb/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en-AU-x-unimelb/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en-GB-x-ukhe/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en-GB-x-ukhe/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en_AU/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en_AU/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en_AU/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en_AU/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en_AU/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en_CA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en_CA/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en_CA/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en_CA/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en_CA/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en_CY/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en_CY/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en_CY/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en_CY/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en_CY/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/en_GB/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/en_GB/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/en_GB/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/en_GB/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/en_GB/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/es/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/es/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/es/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/es/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/es/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/es_ES/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/es_ES/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/es_ES/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/es_ES/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/es_ES/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/es_GT/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/es_GT/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/es_GT/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/es_GT/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/es_GT/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/fa_IR/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/fa_IR/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/fa_IR/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/fa_IR/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/fa_IR/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/fi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/fi/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/fi/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/fi/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/fi/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/fr/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/fr/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/fr/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/fr/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/fr/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/fr_CA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/fr_CA/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/fr_CA/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/fr_CA/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/fr_CA/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/he/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/he/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/he/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/he/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/he/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/ht/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/ht/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/ht/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/ht/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/ht/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/hu/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/hu/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/hu/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/hu/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/hu/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/hy/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/hy/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/hy/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/hy/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/hy/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/is/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/is/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/is/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/is/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/is/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/it/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/it/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/it/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/it/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/it/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/ja/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/ja/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/ja/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/ja/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/ja/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/ko/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/ko/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/ko/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/ko/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/ko/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/mi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/mi/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/mi/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/mi/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/mi/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/nb/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/nb/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/nb/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/nb/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/nb/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/nb-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/nb-x-k12/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/nb-x-k12/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/nb-x-k12/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/nb-x-k12/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/nl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/nl/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/nl/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/nl/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/nl/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/nn/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/nn/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/nn/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/nn/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/nn/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/pl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/pl/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/pl/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/pl/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/pl/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/pt/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/pt/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/pt/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/pt/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/pt/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/pt_BR/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/pt_BR/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/pt_BR/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/pt_BR/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/pt_BR/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/ru/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/ru/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/ru/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/ru/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/ru/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/se/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/se/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/se/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/se/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/se/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/sl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/sl/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/sl/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/sl/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/sl/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/sv/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/sv/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/sv/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/sv/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/sv/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/sv-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/sv-x-k12/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/sv-x-k12/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/sv-x-k12/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/sv-x-k12/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/sv_SE/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/sv_SE/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/sv_SE/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/sv_SE/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/sv_SE/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/tg/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/tg/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/tg/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/tg/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/tg/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/th/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/th/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/th/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/th/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/th/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/th_TH/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/th_TH/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/th_TH/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/th_TH/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/th_TH/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/tr/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/tr/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/tr/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/tr/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/tr/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/uk_UA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/uk_UA/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/uk_UA/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/uk_UA/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/uk_UA/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/vi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/vi/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/vi/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/vi/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/vi/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/vi_VN/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/vi_VN/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/vi_VN/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/vi_VN/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/vi_VN/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/zh/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/zh/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/zh/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/zh/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/zh/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/zh-Hans/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/zh-Hans/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/zh-Hans/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/zh-Hans/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/zh-Hans/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/zh-Hant/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/zh-Hant/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/zh-Hant/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/zh-Hant/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/zh-Hant/modules/rce/tinyRCE.js +1 -0
- package/lib/translated/zh_HK/modules/enhance-user-content/__tests__/enhance_user_content.test.js +16 -1
- package/lib/translated/zh_HK/modules/enhance-user-content/enhance_user_content.js +7 -2
- package/lib/translated/zh_HK/modules/enhance-user-content/instructure_helper.js +10 -2
- package/lib/translated/zh_HK/modules/rce/RCEWrapper.js +7 -4
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/clickCallback.js +46 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +92 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +91 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/plugin.js +32 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +164 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +41 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/countContent.js +78 -0
- package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/tableContent.js +40 -0
- package/lib/translated/zh_HK/modules/rce/tinyRCE.js +1 -0
- package/package.json +3 -2
- package/testcafe/build/100.js +5 -5
- package/testcafe/build/101.js +5 -5
- package/testcafe/build/102.js +1 -1
- package/testcafe/build/103.js +1 -1
- package/testcafe/build/22.js +1 -1
- package/testcafe/build/23.js +39 -3
- package/testcafe/build/27.js +84 -84
- package/testcafe/build/28.js +99 -83
- package/testcafe/build/29.js +107 -51
- package/testcafe/build/30.js +59 -47
- package/testcafe/build/31.js +64 -28
- package/testcafe/build/32.js +28 -16
- package/testcafe/build/33.js +10 -10
- package/testcafe/build/34.js +16 -16
- package/testcafe/build/35.js +27 -15
- package/testcafe/build/36.js +19 -18
- package/testcafe/build/37.js +22 -11
- package/testcafe/build/38.js +14 -13
- package/testcafe/build/39.js +8 -8
- package/testcafe/build/40.js +6 -6
- package/testcafe/build/41.js +6 -6
- package/testcafe/build/42.js +6 -6
- package/testcafe/build/43.js +10 -10
- package/testcafe/build/44.js +5 -5
- package/testcafe/build/45.js +5 -5
- package/testcafe/build/46.js +3 -3
- package/testcafe/build/47.js +6 -6
- package/testcafe/build/48.js +10 -10
- package/testcafe/build/49.js +8 -8
- package/testcafe/build/5.js +1 -1
- package/testcafe/build/50.js +6 -6
- package/testcafe/build/51.js +8 -8
- package/testcafe/build/52.js +6 -6
- package/testcafe/build/53.js +6 -6
- package/testcafe/build/54.js +8 -8
- package/testcafe/build/55.js +8 -8
- package/testcafe/build/56.js +6 -6
- package/testcafe/build/57.js +8 -8
- package/testcafe/build/58.js +8 -8
- package/testcafe/build/59.js +10 -10
- package/testcafe/build/60.js +6 -6
- package/testcafe/build/61.js +6 -6
- package/testcafe/build/62.js +8 -8
- package/testcafe/build/63.js +8 -8
- package/testcafe/build/64.js +8 -8
- package/testcafe/build/65.js +17 -6
- package/testcafe/build/66.js +3 -3
- package/testcafe/build/67.js +5 -5
- package/testcafe/build/68.js +5 -5
- package/testcafe/build/69.js +5 -5
- package/testcafe/build/70.js +5 -5
- package/testcafe/build/71.js +6 -6
- package/testcafe/build/72.js +6 -6
- package/testcafe/build/73.js +6 -6
- package/testcafe/build/74.js +6 -6
- package/testcafe/build/75.js +6 -6
- package/testcafe/build/76.js +6 -6
- package/testcafe/build/77.js +5 -5
- package/testcafe/build/78.js +5 -5
- package/testcafe/build/79.js +5 -5
- package/testcafe/build/80.js +5 -5
- package/testcafe/build/81.js +3 -3
- package/testcafe/build/82.js +5 -5
- package/testcafe/build/83.js +5 -5
- package/testcafe/build/84.js +3 -3
- package/testcafe/build/85.js +3 -3
- package/testcafe/build/86.js +5 -5
- package/testcafe/build/87.js +3 -3
- package/testcafe/build/88.js +5 -5
- package/testcafe/build/89.js +3 -3
- package/testcafe/build/90.js +5 -5
- package/testcafe/build/91.js +3 -3
- package/testcafe/build/92.js +5 -5
- package/testcafe/build/93.js +3 -3
- package/testcafe/build/94.js +5 -5
- package/testcafe/build/95.js +3 -3
- package/testcafe/build/96.js +3 -3
- package/testcafe/build/97.js +5 -5
- package/testcafe/build/98.js +5 -5
- package/testcafe/build/99.js +5 -5
- package/testcafe/build/testcafe.js +18 -6
|
@@ -3313,6 +3313,7 @@ table {
|
|
|
3313
3313
|
'mce-nbsp': 'tinymce__oxide--mce-nbsp',
|
|
3314
3314
|
'mce-shy': 'tinymce__oxide--mce-shy'
|
|
3315
3315
|
};
|
|
3316
|
+
import { countShouldIgnore } from './plugins/instructure_wordcount/utils/countContent';
|
|
3316
3317
|
const RestoreAutoSaveModal = /*#__PURE__*/React.lazy(() => import('./RestoreAutoSaveModal'));
|
|
3317
3318
|
const RceHtmlEditor = /*#__PURE__*/React.lazy(() => import('./RceHtmlEditor'));
|
|
3318
3319
|
const ASYNC_FOCUS_TIMEOUT = 250;
|
|
@@ -3854,10 +3855,12 @@ let RCEWrapper = (_dec = themeable(theme, styles), _dec(_class = (_class2 = clas
|
|
|
3854
3855
|
};
|
|
3855
3856
|
|
|
3856
3857
|
this.onWordCountUpdate = e => {
|
|
3858
|
+
const shouldIgnore = countShouldIgnore(this.editor, 'body', 'words');
|
|
3859
|
+
const updatedCount = e.wordCount.words - shouldIgnore;
|
|
3857
3860
|
this.setState(state => {
|
|
3858
|
-
if (
|
|
3861
|
+
if (updatedCount !== state.wordCount) {
|
|
3859
3862
|
return {
|
|
3860
|
-
wordCount:
|
|
3863
|
+
wordCount: updatedCount
|
|
3861
3864
|
};
|
|
3862
3865
|
} else return null;
|
|
3863
3866
|
});
|
|
@@ -4700,7 +4703,7 @@ let RCEWrapper = (_dec = themeable(theme, styles), _dec(_class = (_class2 = clas
|
|
|
4700
4703
|
const rcsExists = !!((_this$props$trayProps2 = this.props.trayProps) !== null && _this$props$trayProps2 !== void 0 && _this$props$trayProps2.host && (_this$props$trayProps3 = this.props.trayProps) !== null && _this$props$trayProps3 !== void 0 && _this$props$trayProps3.jwt);
|
|
4701
4704
|
const userLocale = editorLanguage(this.language);
|
|
4702
4705
|
const setupCallback = options.setup;
|
|
4703
|
-
const canvasPlugins = rcsExists ? ['instructure_links', 'instructure_image', 'instructure_documents', 'instructure_equation', 'instructure_external_tools'] : ['instructure_links'];
|
|
4706
|
+
const canvasPlugins = rcsExists ? ['instructure_links', 'instructure_image', 'instructure_documents', 'instructure_equation', 'instructure_external_tools', 'instructure_wordcount'] : ['instructure_links'];
|
|
4704
4707
|
|
|
4705
4708
|
if (rcsExists && !this.props.instRecordDisabled) {
|
|
4706
4709
|
canvasPlugins.splice(2, 0, 'instructure_record');
|
|
@@ -4759,7 +4762,7 @@ let RCEWrapper = (_dec = themeable(theme, styles), _dec(_class = (_class2 = clas
|
|
|
4759
4762
|
},
|
|
4760
4763
|
tools: {
|
|
4761
4764
|
title: "Tools",
|
|
4762
|
-
items: '
|
|
4765
|
+
items: 'instructure_wordcount lti_tools_menuitem'
|
|
4763
4766
|
},
|
|
4764
4767
|
view: {
|
|
4765
4768
|
title: "G\xF6ster",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import ReactDOM from 'react-dom';
|
|
20
|
+
import { generateRows, HEADERS } from './utils/tableContent';
|
|
21
|
+
const MODAL_ID = 'canvas-rce-wordcount-container';
|
|
22
|
+
export default function (ed, document) {
|
|
23
|
+
return import('./components/WordCountModal').then(_ref => {
|
|
24
|
+
let {
|
|
25
|
+
WordCountModal
|
|
26
|
+
} = _ref;
|
|
27
|
+
let container = document.querySelector(`#${MODAL_ID}`);
|
|
28
|
+
|
|
29
|
+
if (!container) {
|
|
30
|
+
container = document.createElement('div');
|
|
31
|
+
container.id = MODAL_ID;
|
|
32
|
+
document.body.appendChild(container);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const handleDismiss = () => {
|
|
36
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
37
|
+
ed.focus(false);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
ReactDOM.render( /*#__PURE__*/React.createElement(WordCountModal, {
|
|
41
|
+
headers: HEADERS,
|
|
42
|
+
rows: generateRows(ed),
|
|
43
|
+
onDismiss: handleDismiss
|
|
44
|
+
}), container);
|
|
45
|
+
});
|
|
46
|
+
}
|
package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import _pt from "prop-types";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Canvas.
|
|
7
|
+
*
|
|
8
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
9
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
10
|
+
* Software Foundation, version 3 of the License.
|
|
11
|
+
*
|
|
12
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
13
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
14
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
15
|
+
* details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
18
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import React from 'react';
|
|
21
|
+
import { Modal } from '@instructure/ui-modal';
|
|
22
|
+
import { BaseButton, CloseButton } from '@instructure/ui-buttons';
|
|
23
|
+
import { Heading } from '@instructure/ui-heading';
|
|
24
|
+
import { Table } from '@instructure/ui-table';
|
|
25
|
+
import formatMessage from '../../../../format-message';
|
|
26
|
+
// Doing this to avoid TS2339 errors -- TODO: remove once we're on InstUI 8
|
|
27
|
+
const {
|
|
28
|
+
Head,
|
|
29
|
+
Row,
|
|
30
|
+
ColHeader,
|
|
31
|
+
Body,
|
|
32
|
+
Cell
|
|
33
|
+
} = Table;
|
|
34
|
+
|
|
35
|
+
const renderBody = (headers, rows) => {
|
|
36
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
37
|
+
caption: "Word Count"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Head, null, /*#__PURE__*/React.createElement(Row, null, headers.map(_ref => {
|
|
39
|
+
let {
|
|
40
|
+
id,
|
|
41
|
+
label
|
|
42
|
+
} = _ref;
|
|
43
|
+
return /*#__PURE__*/React.createElement(ColHeader, {
|
|
44
|
+
key: id,
|
|
45
|
+
id: id
|
|
46
|
+
}, label);
|
|
47
|
+
}))), /*#__PURE__*/React.createElement(Body, null, rows.map(_ref2 => {
|
|
48
|
+
let {
|
|
49
|
+
label,
|
|
50
|
+
documentCount,
|
|
51
|
+
selectionCount
|
|
52
|
+
} = _ref2;
|
|
53
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
54
|
+
key: label
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Cell, {
|
|
56
|
+
key: "label"
|
|
57
|
+
}, label), /*#__PURE__*/React.createElement(Cell, {
|
|
58
|
+
key: "document"
|
|
59
|
+
}, documentCount), /*#__PURE__*/React.createElement(Cell, {
|
|
60
|
+
key: "selection"
|
|
61
|
+
}, selectionCount));
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const WordCountModal = _ref3 => {
|
|
66
|
+
let {
|
|
67
|
+
headers,
|
|
68
|
+
rows,
|
|
69
|
+
onDismiss
|
|
70
|
+
} = _ref3;
|
|
71
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
72
|
+
label: "Word Count",
|
|
73
|
+
open: true
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Modal.Header, null, /*#__PURE__*/React.createElement(CloseButton, {
|
|
75
|
+
placement: "end",
|
|
76
|
+
offset: "medium",
|
|
77
|
+
color: "primary",
|
|
78
|
+
onClick: onDismiss,
|
|
79
|
+
screenReaderLabel: "Kapat"
|
|
80
|
+
}), /*#__PURE__*/React.createElement(Heading, null, "Word Count")), /*#__PURE__*/React.createElement(Modal.Body, {
|
|
81
|
+
padding: "x-large"
|
|
82
|
+
}, renderBody(headers, rows)), /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement(BaseButton, {
|
|
83
|
+
onClick: onDismiss,
|
|
84
|
+
"data-testid": "footer-close-button",
|
|
85
|
+
color: "primary"
|
|
86
|
+
}, "Kapat")));
|
|
87
|
+
};
|
|
88
|
+
WordCountModal.propTypes = {
|
|
89
|
+
headers: _pt.array.isRequired,
|
|
90
|
+
rows: _pt.array.isRequired,
|
|
91
|
+
onDismiss: _pt.func.isRequired
|
|
92
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import { fireEvent, render } from '@testing-library/react';
|
|
20
|
+
import { WordCountModal } from '../WordCountModal';
|
|
21
|
+
import { HEADERS } from '../../utils/tableContent';
|
|
22
|
+
const defaultProps = {
|
|
23
|
+
headers: HEADERS,
|
|
24
|
+
rows: [{
|
|
25
|
+
label: 'Words',
|
|
26
|
+
documentCount: 0,
|
|
27
|
+
selectionCount: 1
|
|
28
|
+
}, {
|
|
29
|
+
label: 'Characters (no spaces)',
|
|
30
|
+
documentCount: 2,
|
|
31
|
+
selectionCount: 3
|
|
32
|
+
}, {
|
|
33
|
+
label: 'Characters',
|
|
34
|
+
documentCount: 4,
|
|
35
|
+
selectionCount: 5
|
|
36
|
+
}],
|
|
37
|
+
onDismiss: jest.fn()
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const renderModal = function () {
|
|
41
|
+
let overrideProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
42
|
+
return render( /*#__PURE__*/React.createElement(WordCountModal, Object.assign({}, defaultProps, overrideProps)));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
describe('WordCountModal', () => {
|
|
46
|
+
describe('onDismiss', () => {
|
|
47
|
+
it('is called when the header close button is clicked', () => {
|
|
48
|
+
const {
|
|
49
|
+
getAllByText
|
|
50
|
+
} = renderModal();
|
|
51
|
+
fireEvent.click(getAllByText(/close/i)[0]);
|
|
52
|
+
expect(defaultProps.onDismiss).toHaveBeenCalled();
|
|
53
|
+
});
|
|
54
|
+
it('is called when the footer close button is clicked', () => {
|
|
55
|
+
const {
|
|
56
|
+
getByTestId
|
|
57
|
+
} = renderModal();
|
|
58
|
+
fireEvent.click(getByTestId('footer-close-button'));
|
|
59
|
+
expect(defaultProps.onDismiss).toHaveBeenCalled();
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
describe('headers', () => {
|
|
63
|
+
it('are rendered', () => {
|
|
64
|
+
const {
|
|
65
|
+
getByRole
|
|
66
|
+
} = renderModal();
|
|
67
|
+
defaultProps.headers.forEach(header => {
|
|
68
|
+
expect(getByRole('columnheader', {
|
|
69
|
+
name: header.label
|
|
70
|
+
})).toBeInTheDocument();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
describe('rows', () => {
|
|
75
|
+
it('are rendered', () => {
|
|
76
|
+
const {
|
|
77
|
+
getByRole
|
|
78
|
+
} = renderModal();
|
|
79
|
+
defaultProps.rows.forEach(_ref => {
|
|
80
|
+
let {
|
|
81
|
+
label,
|
|
82
|
+
documentCount,
|
|
83
|
+
selectionCount
|
|
84
|
+
} = _ref;
|
|
85
|
+
expect(getByRole('row', {
|
|
86
|
+
name: `${label} ${documentCount} ${selectionCount}`
|
|
87
|
+
})).toBeInTheDocument();
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import tinymce from 'tinymce';
|
|
19
|
+
import formatMessage from '../../../format-message';
|
|
20
|
+
import clickCallback from './clickCallback';
|
|
21
|
+
tinymce.create('tinymce.plugins.InstructureWordcount', {
|
|
22
|
+
init(ed) {
|
|
23
|
+
ed.addCommand('instructureWordcount', clickCallback.bind(this, ed, document));
|
|
24
|
+
ed.ui.registry.addMenuItem('instructure_wordcount', {
|
|
25
|
+
text: "Word Count",
|
|
26
|
+
icon: 'character-count',
|
|
27
|
+
onAction: () => ed.execCommand('instructureWordcount')
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
});
|
|
32
|
+
tinymce.PluginManager.add('instructure_wordcount', tinymce.plugins.InstructureWordcount);
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { countWords, countCharsNoSpaces, countChars, callbackForCategory, countShouldIgnore, getTinymceCount, countContent, IGNORE_WORDCOUNT_ATTRIBUTE } from '../countContent';
|
|
19
|
+
const editor = {
|
|
20
|
+
getBody: () => ({
|
|
21
|
+
querySelectorAll: () => [createNode('hello world'), createNode('hi again')]
|
|
22
|
+
}),
|
|
23
|
+
plugins: {
|
|
24
|
+
wordcount: {
|
|
25
|
+
body: {
|
|
26
|
+
getWordCount: () => 50,
|
|
27
|
+
getCharacterCountWithoutSpaces: () => 51,
|
|
28
|
+
getCharacterCount: () => 52
|
|
29
|
+
},
|
|
30
|
+
selection: {
|
|
31
|
+
getWordCount: () => 53,
|
|
32
|
+
getCharacterCountWithoutSpaces: () => 54,
|
|
33
|
+
getCharacterCount: () => 55
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const createNode = function (content) {
|
|
40
|
+
let charsOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
41
|
+
const node = document.createElement('p');
|
|
42
|
+
node.setAttribute(IGNORE_WORDCOUNT_ATTRIBUTE, charsOnly ? 'chars-only' : '');
|
|
43
|
+
node.innerText = content;
|
|
44
|
+
return node;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
describe('countWords', () => {
|
|
48
|
+
it('returns 0 if the ignore attribute is "chars-only"', () => {
|
|
49
|
+
const node = createNode('abc', true);
|
|
50
|
+
expect(countWords(node)).toEqual(0);
|
|
51
|
+
});
|
|
52
|
+
it('returns 0 if the text content is the empty string', () => {
|
|
53
|
+
const node = createNode('');
|
|
54
|
+
expect(countWords(node)).toEqual(0);
|
|
55
|
+
});
|
|
56
|
+
it('returns 0 if the text content is only whitespace', () => {
|
|
57
|
+
const node = createNode(' ');
|
|
58
|
+
expect(countWords(node)).toEqual(0);
|
|
59
|
+
});
|
|
60
|
+
it('returns the number of words (whitespace delimited)', () => {
|
|
61
|
+
const node = createNode('a b c d');
|
|
62
|
+
expect(countWords(node)).toEqual(4);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
describe('countChars', () => {
|
|
66
|
+
it('returns 0 if the text content is the empty string', () => {
|
|
67
|
+
const node = createNode('');
|
|
68
|
+
expect(countChars(node)).toEqual(0);
|
|
69
|
+
});
|
|
70
|
+
it('handles invisible and nonstandard length characters', () => {
|
|
71
|
+
// first one is invisible char U+2062
|
|
72
|
+
;
|
|
73
|
+
['', '👉', '𝟈'].forEach(char => {
|
|
74
|
+
const node = createNode(char);
|
|
75
|
+
expect(countChars(node)).toEqual(1);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
it('otherwise handles normal strings of characters', () => {
|
|
79
|
+
;
|
|
80
|
+
['abc', 'a b c', 'somethingsomething'].forEach(str => {
|
|
81
|
+
const node = createNode(str);
|
|
82
|
+
expect(countChars(node)).toEqual(str.length);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
describe('countCharsNoSpaces', () => {
|
|
87
|
+
it('returns 0 if the text content is the empty string', () => {
|
|
88
|
+
const node = createNode('');
|
|
89
|
+
expect(countCharsNoSpaces(node)).toEqual(0);
|
|
90
|
+
});
|
|
91
|
+
it('returns 0 if the text content is only spaces', () => {
|
|
92
|
+
const node = createNode(' ');
|
|
93
|
+
expect(countCharsNoSpaces(node)).toEqual(0);
|
|
94
|
+
});
|
|
95
|
+
it('returns the character count minus the number of spaces', () => {
|
|
96
|
+
const node = createNode('123 '); // 7 spaces
|
|
97
|
+
|
|
98
|
+
expect(countCharsNoSpaces(node)).toEqual(3);
|
|
99
|
+
});
|
|
100
|
+
it('returns the character count if there are no spaces spaces', () => {
|
|
101
|
+
const node = createNode('123');
|
|
102
|
+
expect(countCharsNoSpaces(node)).toEqual(3);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
describe('callbackForCategory', () => {
|
|
106
|
+
it('returns countWords for "words"', () => {
|
|
107
|
+
expect(callbackForCategory('words')).toEqual(countWords);
|
|
108
|
+
});
|
|
109
|
+
it('returns countCharsNoSpaces for "chars-no-spaces"', () => {
|
|
110
|
+
expect(callbackForCategory('chars-no-spaces')).toEqual(countCharsNoSpaces);
|
|
111
|
+
});
|
|
112
|
+
it('returns countChars for "chars"', () => {
|
|
113
|
+
expect(callbackForCategory('chars')).toEqual(countChars);
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
describe('countShouldIgnore', () => {
|
|
117
|
+
it('returns 0 if scope is selection', () => {
|
|
118
|
+
expect(countShouldIgnore(editor, 'selection', 'words')).toEqual(0);
|
|
119
|
+
});
|
|
120
|
+
it('counts correctly using the callback for "words"', () => {
|
|
121
|
+
expect(countShouldIgnore(editor, 'body', 'words')).toEqual(4);
|
|
122
|
+
});
|
|
123
|
+
it('counts correctly using the callback for "chars-no-spaces"', () => {
|
|
124
|
+
expect(countShouldIgnore(editor, 'body', 'chars-no-spaces')).toEqual(17);
|
|
125
|
+
});
|
|
126
|
+
it('counts correctly using the callback for "chars"', () => {
|
|
127
|
+
expect(countShouldIgnore(editor, 'body', 'chars')).toEqual(19);
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
describe('getTinymceCount', () => {
|
|
131
|
+
it('returns the appropriate value for each input combination', () => {
|
|
132
|
+
const scopes = ['body', 'selection'];
|
|
133
|
+
const categories = ['words', 'chars-no-spaces', 'chars'];
|
|
134
|
+
let expectedValue = 50;
|
|
135
|
+
scopes.forEach(scope => {
|
|
136
|
+
categories.forEach(category => {
|
|
137
|
+
expect(getTinymceCount(editor, scope, category)).toEqual(expectedValue);
|
|
138
|
+
expectedValue++;
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
describe('countContent', () => {
|
|
144
|
+
describe('returns getTinymceCount less countShouldIgnore', () => {
|
|
145
|
+
it('for "body" + "words"', () => {
|
|
146
|
+
expect(countContent(editor, 'body', 'words')).toEqual(50 - 4);
|
|
147
|
+
});
|
|
148
|
+
it('for "body" + "chars-no-spaces"', () => {
|
|
149
|
+
expect(countContent(editor, 'body', 'chars-no-spaces')).toEqual(51 - 17);
|
|
150
|
+
});
|
|
151
|
+
it('for "body" + "chars"', () => {
|
|
152
|
+
expect(countContent(editor, 'body', 'chars')).toEqual(52 - 19);
|
|
153
|
+
});
|
|
154
|
+
it('for "selection" + "words"', () => {
|
|
155
|
+
expect(countContent(editor, 'selection', 'words')).toEqual(53 - 0);
|
|
156
|
+
});
|
|
157
|
+
it('for "selection" + "chars-no-spaces"', () => {
|
|
158
|
+
expect(countContent(editor, 'selection', 'chars-no-spaces')).toEqual(54 - 0);
|
|
159
|
+
});
|
|
160
|
+
it('for "selection" + "chars"', () => {
|
|
161
|
+
expect(countContent(editor, 'selection', 'chars')).toEqual(55 - 0);
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { generateRows } from '../tableContent';
|
|
19
|
+
jest.mock('../countContent', () => {
|
|
20
|
+
return {
|
|
21
|
+
countContent: () => 0
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
const editor = {};
|
|
25
|
+
describe('generateRows', () => {
|
|
26
|
+
it('creates the expected row structure', () => {
|
|
27
|
+
expect(generateRows(editor)).toEqual([{
|
|
28
|
+
label: 'Words',
|
|
29
|
+
documentCount: 0,
|
|
30
|
+
selectionCount: 0
|
|
31
|
+
}, {
|
|
32
|
+
label: 'Characters (no spaces)',
|
|
33
|
+
documentCount: 0,
|
|
34
|
+
selectionCount: 0
|
|
35
|
+
}, {
|
|
36
|
+
label: 'Characters',
|
|
37
|
+
documentCount: 0,
|
|
38
|
+
selectionCount: 0
|
|
39
|
+
}]);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export const IGNORE_WORDCOUNT_ATTRIBUTE = 'data-ignore-wordcount';
|
|
19
|
+
export const countWords = node => {
|
|
20
|
+
if (node.getAttribute(IGNORE_WORDCOUNT_ATTRIBUTE) === 'chars-only') return 0;
|
|
21
|
+
const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';
|
|
22
|
+
const trimmedTextContent = textContent.trim();
|
|
23
|
+
if (trimmedTextContent.length === 0) return 0;
|
|
24
|
+
return trimmedTextContent.split(/\s+/).length;
|
|
25
|
+
};
|
|
26
|
+
export const countCharsNoSpaces = node => {
|
|
27
|
+
const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';
|
|
28
|
+
const matches = textContent.match(/ /g); // a single space
|
|
29
|
+
|
|
30
|
+
const spaces = matches ? matches.length : 0;
|
|
31
|
+
return countChars(node) - spaces;
|
|
32
|
+
};
|
|
33
|
+
export const countChars = node => {
|
|
34
|
+
const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';
|
|
35
|
+
const iterator = textContent[Symbol.iterator]();
|
|
36
|
+
let count = 0;
|
|
37
|
+
|
|
38
|
+
while (!iterator.next().done) {
|
|
39
|
+
count++;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return count;
|
|
43
|
+
};
|
|
44
|
+
export const callbackForCategory = category => {
|
|
45
|
+
switch (category) {
|
|
46
|
+
case 'words':
|
|
47
|
+
return countWords;
|
|
48
|
+
|
|
49
|
+
case 'chars-no-spaces':
|
|
50
|
+
return countCharsNoSpaces;
|
|
51
|
+
|
|
52
|
+
case 'chars':
|
|
53
|
+
return countChars;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export const countShouldIgnore = (ed, scope, category) => {
|
|
57
|
+
if (scope === 'selection') return 0;
|
|
58
|
+
const nodesToCount = Array.from(ed.getBody().querySelectorAll(`[${IGNORE_WORDCOUNT_ATTRIBUTE}]`));
|
|
59
|
+
const callback = callbackForCategory(category);
|
|
60
|
+
return nodesToCount.reduce((total, node) => total + callback(node), 0);
|
|
61
|
+
};
|
|
62
|
+
export const getTinymceCount = (ed, scope, category) => {
|
|
63
|
+
const wc = ed.plugins.wordcount[scope];
|
|
64
|
+
|
|
65
|
+
switch (category) {
|
|
66
|
+
case 'words':
|
|
67
|
+
return wc.getWordCount();
|
|
68
|
+
|
|
69
|
+
case 'chars-no-spaces':
|
|
70
|
+
return wc.getCharacterCountWithoutSpaces();
|
|
71
|
+
|
|
72
|
+
case 'chars':
|
|
73
|
+
return wc.getCharacterCount();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export const countContent = (ed, scope, category) => {
|
|
77
|
+
return getTinymceCount(ed, scope, category) - countShouldIgnore(ed, scope, category);
|
|
78
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2022 - present Instructure, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is part of Canvas.
|
|
5
|
+
*
|
|
6
|
+
* Canvas is free software: you can redistribute it and/or modify it under
|
|
7
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
8
|
+
* Software Foundation, version 3 of the License.
|
|
9
|
+
*
|
|
10
|
+
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
11
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
|
13
|
+
* details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License along
|
|
16
|
+
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { countContent } from './countContent';
|
|
19
|
+
import formatMessage from '../../../../format-message';
|
|
20
|
+
export const HEADERS = [{
|
|
21
|
+
id: 'count',
|
|
22
|
+
label: "Count"
|
|
23
|
+
}, {
|
|
24
|
+
id: 'document',
|
|
25
|
+
label: "Document"
|
|
26
|
+
}, {
|
|
27
|
+
id: 'selection',
|
|
28
|
+
label: "Selection"
|
|
29
|
+
}];
|
|
30
|
+
const ROW_LABELS = [['words', "Words"], ['chars-no-spaces', "Characters (no spaces)"], ['chars', "Characters"]];
|
|
31
|
+
export const generateRows = ed => {
|
|
32
|
+
return ROW_LABELS.map(_ref => {
|
|
33
|
+
let [category, label] = _ref;
|
|
34
|
+
return {
|
|
35
|
+
label,
|
|
36
|
+
documentCount: countContent(ed, 'body', category),
|
|
37
|
+
selectionCount: countContent(ed, 'selection', category)
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -48,6 +48,7 @@ import './plugins/instructure_documents/plugin';
|
|
|
48
48
|
import './plugins/instructure_html_view/plugin';
|
|
49
49
|
import './plugins/instructure_media_embed/plugin';
|
|
50
50
|
import './plugins/instructure_icon_maker/plugin';
|
|
51
|
+
import './plugins/instructure_wordcount/plugin';
|
|
51
52
|
import 'tinymce-a11y-checker'; // prevent tinymce from loading language scripts with explicit
|
|
52
53
|
// language_url of 'none'
|
|
53
54
|
|
package/lib/translated/uk_UA/modules/enhance-user-content/__tests__/enhance_user_content.test.js
CHANGED
|
@@ -128,7 +128,7 @@ describe('enhanceUserContent()', () => {
|
|
|
128
128
|
});
|
|
129
129
|
describe('when the link has neither inline_disabled class or no_preview class', () => {
|
|
130
130
|
it('has the file_preview_link class and the target attribute', () => {
|
|
131
|
-
subject('<a class="instructure_file_link instructure_scribd_file" href="/courses/1/files/1" target="_blank">file</a>');
|
|
131
|
+
subject('<a id="alink" class="instructure_file_link instructure_scribd_file" href="/courses/1/files/1" target="_blank">file</a>');
|
|
132
132
|
enhanceUserContent();
|
|
133
133
|
const aTag = document.querySelector('a');
|
|
134
134
|
expect(aTag.classList.contains('file_preview_link')).toBeTruthy();
|
|
@@ -136,6 +136,21 @@ describe('enhanceUserContent()', () => {
|
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
+
describe('internal links target attribute', () => {
|
|
140
|
+
it('is set to the provided options', () => {
|
|
141
|
+
// which is the case for img file links
|
|
142
|
+
subject(`<a id="blank_target" title="Link" href="/courses/1/files/79?wrap=1" target="_blank">some file</a>
|
|
143
|
+
<a id="no_target" title="Link" href="/courses/1/files/79?wrap=1">a file</a>
|
|
144
|
+
<a id="a_target" title="Link" href="/courses/1/files/79?wrap=1" target="a_target">another file</a>`);
|
|
145
|
+
enhanceUserContent(document, {
|
|
146
|
+
canvasOrigin: 'https://canvas.here',
|
|
147
|
+
canvasLinksTarget: 'open_here'
|
|
148
|
+
});
|
|
149
|
+
expect(document.getElementById('blank_target').getAttribute('target')).toEqual('open_here');
|
|
150
|
+
expect(document.getElementById('no_target').getAttribute('target')).toEqual('open_here');
|
|
151
|
+
expect(document.getElementById('a_target').getAttribute('target')).toEqual('a_target');
|
|
152
|
+
});
|
|
153
|
+
});
|
|
139
154
|
describe('external links', () => {
|
|
140
155
|
it('adds the exernal link icon', () => {
|
|
141
156
|
subject('<a href="https://instructure.com/">external link</a>');
|