Right now, Flow doesn't use ve.init.mw.Target because its multi-surface support isn't as good as sa.Target's, and mw.Target contains a lot of code Flow doesn't need (because mw.Target assumes you're only editing one page, rather than a multitude of non-page things). However, there are a number of things in mw.Target that Flow could and should benefit from (e.g. getHtml for T97165: Flow doesn't strip browser plugin garbage or fixBase and related functionality for T96492: Previewing a link to a File in Flow's VE-mode, opens a broken destination due to /w/ ). So we should split MW-specific code (in ve.init.mw.Target) from "MW page editing-specific code" (in ve.init.mw.PageTarget or something?)
Description
Description
Details
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T52000 Enable VisualEditor by default for all users of all Wikimedia wikis | |||
Open | None | T138391 Enable VisualEditor by default for all users of all Wikisources | |||
Open | None | T138966 Make the VisualEditor/ProofreadPage integration good enough to enable by default | |||
Resolved | Tpt | T93525 Add the visual editor to Wikisource | |||
Resolved | coren | T48580 Create a VisualEditor plugin to integrate with ProofreadPage | |||
Open | None | T121110 Flow should use one VisualEditor target per page | |||
Open | None | T97165 Flow doesn't strip browser plugin garbage | |||
Resolved | Esanders | T97168 Make mw.flow.ve.Target inherit from ve.init.mw.Target, not sa.Target | |||
Resolved | Esanders | T97166 Move code specific to page editing out of ve.init.mw.Target |
Event Timeline
Comment Actions
Change 258158 had a related patch set uploaded (by Esanders):
Rename mw.Target to mw.ArticleTarget
Comment Actions
Flow/modules/editor/editors/visualeditor/ext.flow.editors.visualeditor.js: ve.init.mw.Target.static.fixBase( htmlDoc ); Flow/modules/editor/editors/visualeditor/ext.flow.editors.visualeditor.js: // Based on ve.init.mw.Target.prototype.setupSurface Flow/modules/flow/ui/widgets/editor/editors/mw.flow.ui.VisualEditorWidget.js: ve.init.mw.Target.static.fixBase( htmlDoc );
Comment Actions
Change 258452 had a related patch set uploaded (by Esanders):
[BREAKING CHANGE] Create ve.init.mw.Target base class
Comment Actions
Change 258452 merged by jenkins-bot:
[BREAKING CHANGE] Create ve.init.mw.Target base class