Trevor Parscal
ecabf9d0cf
Fixed the history buttons to be locked out when disabled
...
Change-Id: Ie68737a271c683ba0e196d910ef562ac1313c69b
2012-06-19 13:05:32 -07:00
Rob Moen
9f3a8e719f
Rewrite updateState for listButtonTool
...
Change-Id: I690ce70304ed49e71836297c701eceb2269d9b97
2012-06-19 12:57:51 -07:00
Trevor Parscal
cc17c81469
Convert content branches to paragraphs before wrapping them in a list
...
Change-Id: I987a92e838b817dfe7afbcaae19c03b9437f7b66
2012-06-19 12:50:01 -07:00
Trevor Parscal
70c8a4fe35
Allow retry after load failure
...
Change-Id: Ib0766427013a20e70cca3c17c29246d25690079f
2012-06-19 12:26:08 -07:00
Trevor Parscal
9dd09e6b4f
Improved error handling and locked the save dialog save button while saving
...
Change-Id: I57483f242ef81e17ec1c9d30871c07c2a177a590
2012-06-19 12:15:57 -07:00
Catrope
4192d1784a
Actually fix the error in the previous commit
...
Change-Id: I5dd841692b2f39c807527dbeb116c904c7cb0994
2012-06-19 12:14:57 -07:00
Catrope
56a98e0d9c
Use jQuery for lastChild as well, for consistency and to prevent errors
...
Change-Id: Ia024dbc5ca60e857987aeb652a9c8af5d423c2d0
2012-06-19 12:10:29 -07:00
Catrope
f2a07014e3
Set sHref on links on the way out
...
This fixes handling of internal links, but this code needs more love
Change-Id: I2424d23bd7e795bd7c9cc3443fe4ec4001f2a8c9
2012-06-19 11:59:28 -07:00
Catrope
f08c0ca3a0
Don't add newlines to text nodes inside lists
...
Change-Id: Ife11f7b87ab540a8a99f13315f889c2aa41a6a32
2012-06-19 11:55:45 -07:00
Rob Moen
6bc9b9176a
Add link inspector page title message
...
Change-Id: I31437946398482e953b027300a421a2bd83c5073
2012-06-19 11:11:01 -07:00
GWicke
d01911e18f
Revert "Fixed newline stripping in rtve mode."
...
This reverts commit bb7d7c09a5
2012-06-19 18:02:37 +00:00
Trevor Parscal
a62e011d68
Reduced selecting on the documentNode
...
Change-Id: I6f90e931eedad518d6716cb965606b8fb9387f1e
2012-06-19 10:50:41 -07:00
Trevor Parscal
fed9915ba5
Reset the save dialog between uses
...
Also fixed the watchList binding for loading the right state
Change-Id: I25822ba9dfb25d5f8ade765baf6ae69adc9d40ae
2012-06-19 10:50:41 -07:00
Subramanya Sastry
bb7d7c09a5
Fixed newline stripping in rtve mode.
...
- Only strip newlines after ">" chars (still not robust,
but better than stripping everywhere). This prevents
useless/incorrect diffs in rtve mode and lets us identify
real bugs.
Change-Id: Iab7b41c4b3d6351c090f8d3a3070330325e876d4
2012-06-19 12:34:42 -05:00
Rob Moen
d3cb2ccb26
write update and unlist method for list button tool
...
Change-Id: Ie1f0f8755aac7058d93890e13efefb3c63ee9710
2012-06-19 10:08:05 -07:00
Catrope
97a1edfd72
Crusade against hardcoded English, i18n for everything
...
Change-Id: Ibc658e5f67a373394a4ba149e9b9003f3803023a
2012-06-19 01:30:30 -07:00
Catrope
6a48f2b829
Fix inconsistent parameter lists for loadError and saveError events
...
Change-Id: I7d195793f05f98ff3218f494ef78f9981f6b716f
2012-06-19 01:24:40 -07:00
Catrope
c15b9d04a0
Fix typos in license text
...
Change-Id: I0777955b976c2a5d11e5cde78d12b403b8ec7828
2012-06-19 01:24:40 -07:00
Catrope
5db6504cd3
Fix method docs for change(), you can't actually pass multiple transactions
...
Change-Id: I24dd0bd009cd2a7588d8bd45c4580460d49271c7
2012-06-19 01:24:40 -07:00
Inez Korczynski
3ac2c8e494
Improve handling for enter key - and support typing "on the selection" by removing selection first.
2012-06-18 22:25:16 -07:00
Inez Korczynski
4cef63538f
Replace every second space with and do the same for the first space and last space.
2012-06-18 22:24:18 -07:00
Inez Korczynski
5e845979b8
Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite
2012-06-18 22:23:15 -07:00
Trevor Parscal
ca4f19c726
Fixed remaining uses of transact to change
...
Change-Id: I63c8fb183be8b37db85ed386d7bf33633e821f80
2012-06-18 22:05:05 -07:00
Trevor Parscal
d6dd113d8d
Adjusted fades and cleaned up URI objects
...
Change-Id: I2c6d5758c958ddc222293152707f13d7ae560343
2012-06-18 21:47:43 -07:00
Trevor Parscal
26dee2c8ea
Switched to using "pageName" instead of "title" since page names include the namespace prefix, so it's more correct
...
Change-Id: Icd1a76ad317fc88f7895654ec1c41144c2695648
2012-06-18 21:47:43 -07:00
Trevor Parscal
ea81d217b5
Work around broken .clone in mw.Uri
...
Change-Id: I5e3605c626fc3429c332feab839f555d279e11f7
2012-06-18 21:47:43 -07:00
Catrope
563db3c4ad
Make the API module handle missing pages and page creations
...
Change-Id: I91a43888435011b62e62cf4dde744b23a4ea65d6
2012-06-18 17:42:12 -07:00
Catrope
675bd284c5
Make the converter not return an empty document
...
Various parts of DM and CE choke on completely empty documents, so
return an empty paragraph instead.
Change-Id: I67062b66a44efe53a1bdaf60907653f0cc55dd25
2012-06-18 17:42:12 -07:00
Catrope
0e95b20cda
If the page doesn't exist, create a "Create" tab, not an "Edit" tab
...
Change-Id: Ic9fa936ac96539ca65e2d570a2c5419dc19334df
2012-06-18 17:42:11 -07:00
Catrope
f9f9328275
Remove userCan hook that had no effect
...
This hook tried to enforce $wgNamespaceProtection , but that's a core
config variable that's already enforced by MediaWiki itself
Change-Id: I15a40d92e0296eb60054d9845d5c42b880a8f278
2012-06-18 17:42:11 -07:00
Trevor Parscal
44d297f8ff
Fixed post-save behavior
...
Change-Id: Ib9bb5d725b1cba2f3e8eb9aa9cf4f2dd2fc87229
2012-06-18 17:39:31 -07:00
Trevor Parscal
4ffc6fff60
Was checking the wrong thing for undefined
...
Change-Id: I11b813fe8708ef03db2f8b884b3766d8cbe887ce
2012-06-18 17:37:12 -07:00
Trevor Parscal
cf1c033bff
Added section edit link functionality from diff pages
...
Change-Id: I2dce543d352f4e086b96c65e53f1a90ef58072fb
2012-06-18 16:52:37 -07:00
Inez Korczynski
f97ef02370
Early version of support for typing in "slug" (turning it into paragraph)
2012-06-18 15:50:20 -07:00
Inez Korczynski
6276938d21
Fix problem with turning elements of one type into elements of another type.
2012-06-18 15:30:23 -07:00
Gabriel Wicke
9e2a47d540
Switch diff algo back to diffWords by default
...
Faster than diffChars, and still easier to read than diffLines.
Change-Id: Id450a2f8a098bb0a71ccf54616f82dad4f25441c
2012-06-19 00:21:34 +02:00
Inez Korczynski
6d5e524817
Cleanup in ve.ce.Surface - no significant changes
2012-06-18 15:11:54 -07:00
Inez Korczynski
52aaabd499
Fix ListButtonTool to use method "change" instead of old "transact"
2012-06-18 15:04:30 -07:00
Inez Korczynski
79b1726b70
Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite
2012-06-18 15:04:00 -07:00
Inez Korczynski
78028ff588
Ported method debounce from underscore.js to ve.
2012-06-18 15:03:38 -07:00
Trevor Parscal
f49aa141aa
Redirect through the view page when coming from a diff page
...
Also added URL mixup using window.history.replaceState
Change-Id: If84998b0fe945d82fdfa9a8c88391db30286e972
2012-06-18 14:53:28 -07:00
Inez Korczynski
81375698a2
Fix minor bug in ve.log
2012-06-18 14:48:42 -07:00
Trevor Parscal
70b8c92660
Converted more uses of console.log to ve.log
...
Change-Id: Id41130de088e56dbe8774689317002baa66f5950
2012-06-18 14:19:07 -07:00
Trevor Parscal
76bca4f520
Added veaction param which auto-initializes the editor
...
Made edit tabs rendered on non view pages work correctly by routing them to the view page with an extra param that auto-initializes the editor
Change-Id: I4fd9106c8b45c6fc79af9ccb44e18944e9b9d8b9
2012-06-18 14:13:26 -07:00
Gabriel Wicke
5fbc80321b
Improve newline handling for comments and nowiki/noinclude tags
...
* Added a newlineTransparent flag to handlers that prevents changes to the
onNewline status, so that content following it is still considered to be in
start-of-line context. This fixes a few rt tests where a comment or nowiki
tag is at the start of the line, and following content should end up on the
same line.
* 283 rt parser tests are now passing.
Change-Id: Ie58dcb9e5e9af9000fff61c2e1db5d8649ffc3f6
2012-06-18 22:56:41 +02:00
Trevor Parscal
11a3d883f2
Using resource loader debug scripts to unstub ve.log
...
Also added ve.dir and converted use of console.log to ve.log
Change-Id: Ibbfd78b6ece163f54f40e997c79a01de6609c2b4
2012-06-18 13:30:39 -07:00
Inez Korczynski
1fa1908402
Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite
2012-06-18 13:19:24 -07:00
Inez Korczynski
8b823a7dc6
Introduce new method in Surface model called "change" and get rid of "setSelection" and "transact". Start using new method in Surface view - which right away fixes two bugs - typing at the and of the document, and typing in newly created paragraph/heading.
2012-06-18 13:19:07 -07:00
Trevor Parscal
005721cb81
Major cleanup, fixes and refactoring of ve.init
...
This solves lots of issues in the integration work, and also makes it much easier to extend this class to integrate it into other skins
Change-Id: I3b3c5b22a5664e6cf37e429cc0ac3be2e75b630f
2012-06-18 13:12:47 -07:00
Trevor Parscal
debef5671c
Made the first paragraph in a list item have no margins or padding to simulate raw text
...
Change-Id: I7e0aeb9a15db4a56f2a3552430c0da0202f97a97
2012-06-18 13:12:47 -07:00