Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert doesn't work with VisualEditor and 2017 wikicode editor (Wikipedia, MW) #3

Open
Eccenux opened this issue Jan 5, 2023 · 0 comments

Comments

@Eccenux
Copy link
Owner

Eccenux commented Jan 5, 2023

The VE Wikicode Editor (also called 2017 editor) uses the VE surface. Results should be roughly the same.

VE actually uses many editors, that doesn't seem to be feasible to do with any browser API.
VE Wikicode Editor seems one contenteditable. So that might work... But probably won't either.

Results for wikicode on Windows (Firefox) are similar to #1.

  • Multiline: Two lines are added in-between all selected lines. Changes are not registered (previewing changes doesn't show inserted tag).
  • Singleline: Seems to work fine. Both when single word is selected and many items within one line (image below).
  • No selection: Works fine.

obraz

Note for testing make sure library is loaded on Wikipedia.

mw.loader.load( 'https://pl.wikipedia.org/wiki/MediaWiki:Gadget-sel_t3.js?action=raw&ctype=text/javascript' );

Then use code from #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant