Enable the wikitext editor via $wgVisualEditorEnableWikitext = true;
Edit a page, and try to paste data into it.
See this exception:
ve.ui.DataTransferHandlerFactory.js?15814:129 Uncaught TypeError: Cannot read property 'static' of undefined
Enable the wikitext editor via $wgVisualEditorEnableWikitext = true;
Edit a page, and try to paste data into it.
See this exception:
ve.ui.DataTransferHandlerFactory.js?15814:129 Uncaught TypeError: Cannot read property 'static' of undefined
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Remove items from DTH factory indexes when unregistering | VisualEditor/VisualEditor | master | +50 -12 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T132023 VisualEditor support for editing inside CollaborationKit | |||
Open | Feature | None | T138636 Allow using VisualEditor on Special:MassMessage | ||
Open | None | T138642 VisualEditor should provide a clean integrated VE/WT editor widget that can be integrated into any context | |||
Open | None | T130400 (Actually) Add wikitext support for citoid for automatic reference insertion | |||
Open | None | T90864 Help VisualEditor users find the wikitext "Save" button | |||
Open | None | T171974 Improve and consolidate our unified editing platform so that it's great on all devices | |||
Open | None | T104479 Provide a modern wikitext editor | |||
Resolved | Jdforrester-WMF | T141149 Provide a Beta Feature of a modern wikitext editor integrated into the visual editor | |||
Resolved | Esanders | T143954 Pasting into VE with new Wikitext surface enabled causes error |
This is a bug in ve.ce.MWWikitextSurface where I unconditionally unregister ve.ui.MWWikitextStringTransferHandler. The handler should be available in VE, but not NWE.
The way I did this with the other factories was by create wikitext versions of the factories, but this might be overkill for removing/disabling one item.
But also this reveals that unregister isn't working properly in this case - it needs to be overridden to update all the extra caches DTHFactory creates.
Change 306967 had a related patch set uploaded (by Esanders):
Remove items from DTH factory caches when unregistering
Change 306967 merged by jenkins-bot:
Remove items from DTH factory indexes when unregistering