[02:02:42] 10Citoid, 10VisualEditor: In Citoid, magically follow URLs provided in non-link fields (e.g. link rel="publisher") to scrape more info from there - https://phabricator.wikimedia.org/T118773#1836394 (10Whatamidoing-WMF) This: ```{{Cite web|title = Feels Like The First Time: Cursive's Tim Kasher reconvenes the G... [02:14:32] 10VisualEditor, 10SyntaxHighlight: Can't open two code blocks in one editor session (aka Uncaught TypeError: Cannot read property 'fail' of null) - https://phabricator.wikimedia.org/T119815#1836395 (10Florian) 3NEW a:3Jdforrester-WMF [02:14:50] 10VisualEditor, 10SyntaxHighlight: Can't open two code blocks in one editor session (aka Uncaught TypeError: Cannot read property 'fail' of null) - https://phabricator.wikimedia.org/T119815#1836409 (10Florian) a:5Jdforrester-WMF>3None [05:14:41] 10VisualEditor, 10VisualEditor-MediaWiki, 5Patch-For-Review, 7Performance: ext.visualEditor.data causes cache churn - https://phabricator.wikimedia.org/T119750#1836530 (10Ryasmeen) I do use it to check the commit tree, so that I can track whether a fix is merged on that release or not. But I guess I can do... [07:40:33] (03CR) 10DLynch: "It probably should. Unless we think the logical response to trying to move further left/right at the end of the table is to move the curso" (032 comments) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255160 (https://phabricator.wikimedia.org/T119545) (owner: 10DLynch) [07:41:03] (03PS6) 10DLynch: When the cursor is inside a table cell, tab moves between cells [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255160 (https://phabricator.wikimedia.org/T119545) [08:17:10] (03CR) 10Divec: "Implementing Tab cell wrapping in a separate patch seems entirely sensible." (031 comment) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255160 (https://phabricator.wikimedia.org/T119545) (owner: 10DLynch) [08:19:43] (03CR) 10DLynch: When the cursor is inside a table cell, tab moves between cells (031 comment) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255160 (https://phabricator.wikimedia.org/T119545) (owner: 10DLynch) [08:20:41] (03PS7) 10DLynch: When the cursor is inside a table cell, tab moves between cells [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255160 (https://phabricator.wikimedia.org/T119545) [09:53:29] Need help programmatically creating a bullet list and making annotations to list items. So far I have been able to create a list but think wrongly as VE errors out when attempting to split a list item in two or behaves wrongly (i.e. when attempting to position the cursor in a list item and it jumps out of the list). Here's a snippet of the code I'm using to create a list: http://pastebin.com/ymRusb5h [10:08:35] algo: hey. the list-related part looks correct, but you have to split the string, as each character is a separate item in the data model [10:09:09] algo: this works for me: http://pastebin.com/e7dgSREd [10:10:24] @MatmaRex: oh man, that's so cool -- thank you! [10:10:37] How would I go about applying annotations to a specific list item? in the transaction? [10:11:21] Can annotations be applied automatically in the transaction itself or will I ahve to somehow iterate between each list item and then manually apply annotations? [10:14:09] hmm [10:23:35] algo: i can't find a neater way to do this than http://pastebin.com/yJ3zhKcw . [10:23:57] algo: if you wanted to do it in a separate transaction, looks like there is ve.dm.Transaction.newFromAnnotation. [10:25:46] @MatmaRex: that is pretty good. I was looking through the VE codebase looking for a way to pass annotation data in transactions but have completely missed the AnnotationSet class. Wonderful tip!! [10:26:05] @MatmaxRex: will look into ve.dm.Transaction.newFromAnnotation . [10:26:36] algo: i adapted this code from ve.ui.MWLinkNodeInspector.prototype.getTeardownProcess, the `if ( convert )` case [10:26:56] (which generates some annotated text) [10:27:26] @MatmaRex: ok, fantastic. Looking into it. [10:28:18] @MatmaRex: do you know how to find the end position of the document if the intention was to append content? [10:28:51] for the data, ['f', 'o', 'o'] just becomes [['f', annotations], ['o', annotations], ['o', annotations]]; where annotations is some array of indices or something; but you have to put the annotations object into somewhere, i think AnnotationSet does this [10:30:07] hmm [10:34:04] algo: i actually don't know. `surface.model.documentModel.data.data.length` seems to work, but surely that can't be the proper way. [10:36:17] MatmaRex: yeah, probably wouldn't be the right way to go about it since it might not ignore the references section. [10:36:45] MatmaRex: might be necessary to iterate through the nodes to find a suitable offset to insert content at? Do you know of a way to iterate through nodes? [10:37:46] algo: hm, i just found SurfaceFragment#expandLinearSelection [10:37:47] surface.model.getFragment().expandLinearSelection( 'root' ).getSelection().getRange() [10:37:58] this seems to give you the same range that pressing Ctrl+A would select [10:40:33] MatmaRex: those are some great tips! I can't stress enough just how helpful you've been -- thank you so much! [10:40:53] :D [11:02:47] 10VisualEditor: Add non-breaking space to VE - https://phabricator.wikimedia.org/T119826#1836633 (10Vojtech.dostal) 3NEW [11:21:13] 10VisualEditor: Add non-breaking space to VE - https://phabricator.wikimedia.org/T119826#1836643 (10matmarex) [11:21:15] 10VisualEditor, 10VisualEditor-EditingTools: VisualEditor: Add non-breaking space (nbsp) to the "special character" dialog - https://phabricator.wikimedia.org/T70429#1836644 (10matmarex) [16:01:24] (03CR) 10Divec: [C: 031] When the cursor is inside a table cell, tab moves between cells [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255160 (https://phabricator.wikimedia.org/T119545) (owner: 10DLynch) [16:14:29] (03PS1) 10Bartosz Dziewoński: Use white-space: pre-wrap instead of using   for spaces [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255931 (https://phabricator.wikimedia.org/T55931) [16:15:13] (03CR) 10Bartosz Dziewoński: "I see no ill effects, but please watch out for any whitespace-related issues after this is merged." [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255931 (https://phabricator.wikimedia.org/T55931) (owner: 10Bartosz Dziewoński) [16:21:39] Hi! How would I go about creating a citation in a transaction? I'm using the following code to create a bullet list containing two list items. I am trying to create a citation in the "second paragraph" string but don't know where to start: http://pastebin.com/yJ3zhKcw . [16:23:22] Do I need to use ve.dm.MWReferenceModel to create the reference data? How do I link that to the list item in the transaction? [16:29:28] The idea is to have the "second paragraph" string reference a link, e.g. "second paragraph [1]"; and for a reference to be created to, say, an external link. [16:36:12] algo: i have no idea, but i'd look at how this is done when you insert a reference from the user interface. the code is in ve.ui.MWReferenceDialog.prototype.getActionProcess [16:52:49] MatmaRex: thank you for that. Will look into it. [17:15:42] 10VisualEditor, 10VisualEditor-EditingTools: Templates that contain a colon in their names gain an extra colon while edited in VE - https://phabricator.wikimedia.org/T119805#1837132 (10Piramidion) [18:02:19] (03PS1) 10Bartosz Dziewoński: Define 'space' as a trigger key [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/255935 [18:02:40] (03PS1) 10Bartosz Dziewoński: Show non-breaking spaces in the editor [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255936 (https://phabricator.wikimedia.org/T96666) [18:02:42] (03PS1) 10Bartosz Dziewoński: Add command to insert non-breaking space, triggered by Ctrl+Space (PC) / Opt+Space (Mac) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255937 (https://phabricator.wikimedia.org/T53045) [18:03:25] (03CR) 10Bartosz Dziewoński: [C: 04-1] "* Didn't test on a Mac" [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255937 (https://phabricator.wikimedia.org/T53045) (owner: 10Bartosz Dziewoński) [18:04:36] 10VisualEditor, 10VisualEditor-MediaWiki, 10Parsoid: VE silently alters non-breaking spaces into normal spaces - https://phabricator.wikimedia.org/T96701#1837191 (10matmarex) [18:04:42] (03CR) 10jenkins-bot: [V: 04-1] Show non-breaking spaces in the editor [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255936 (https://phabricator.wikimedia.org/T96666) (owner: 10Bartosz Dziewoński) [18:05:54] 10VisualEditor, 10VisualEditor-MediaWiki, 10Parsoid: VE silently alters non-breaking spaces into normal spaces - https://phabricator.wikimedia.org/T96701#1224837 (10matmarex) * This is actually a Parsoid issue: it converts all   in input HTML to regular space in wikitext. I'm not sure why, but it looks... [18:14:39] 10VisualEditor, 10VisualEditor-MediaWiki, 5Patch-For-Review, 7Performance: ext.visualEditor.data causes cache churn - https://phabricator.wikimedia.org/T119750#1837209 (10Esanders) @Ori would it be better if we moved this to a separate module which is only loaded when the help popup is opened? [18:18:21] 10VisualEditor, 10VisualEditor-EditingTools: VisualEditor: Add non-breaking space (nbsp) to the "special character" dialog - https://phabricator.wikimedia.org/T70429#1837210 (10matmarex) Due to various implementation details this is more difficult than it looks (it's not just a matter of adding an entry to the... [18:18:37] 10VisualEditor, 10VisualEditor-ContentEditable, 5Patch-For-Review: VisualEditor: Ctrl+Space/Opt+Space to insert a non-breaking space (NBSP) - https://phabricator.wikimedia.org/T53045#1837211 (10matmarex) [18:29:18] 10VisualEditor, 10VisualEditor-MediaWiki: If two or more MWEntityNodes are next to each other, you need two arrow key presses to cursor past each - https://phabricator.wikimedia.org/T119838#1837213 (10matmarex) 3NEW [18:31:23] 10VisualEditor, 10VisualEditor-MediaWiki: When a MWEntityNodes is inserted in the middle of a paragraph (not at the end), the slug thingies are not inserted - https://phabricator.wikimedia.org/T119839#1837221 (10matmarex) 3NEW [18:32:55] (03CR) 10Esanders: [C: 04-1] "Still not sold on this. Can't we just add it to the special character inserter first?" [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255937 (https://phabricator.wikimedia.org/T53045) (owner: 10Bartosz Dziewoński) [18:33:45] 10VisualEditor, 10VisualEditor-MediaWiki: Annotation is not continued after MWEntityNode (maybe other nodes too?) - https://phabricator.wikimedia.org/T119840#1837229 (10matmarex) 3NEW [18:34:24] (03CR) 10Bartosz Dziewoński: "Special character inserter can't insert MWEntityNodes. (That's T70429, by the way.)" [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255937 (https://phabricator.wikimedia.org/T53045) (owner: 10Bartosz Dziewoński) [18:34:30] 10VisualEditor, 10VisualEditor-ContentEditable, 5Patch-For-Review: VisualEditor: Ctrl+Space/Opt+Space to insert a non-breaking space (NBSP) - https://phabricator.wikimedia.org/T53045#1837235 (10Esanders) I also think CTRL+space is quite a high profile shortcut to assign to a relatively uncommon feature. [18:38:34] 10VisualEditor, 10SyntaxHighlight: Can't open two code blocks in one editor session (aka Uncaught TypeError: Cannot read property 'fail' of null) - https://phabricator.wikimedia.org/T119815#1837239 (10matmarex) I ran into this when updating docs on mediawiki.org :( [18:44:46] (03CR) 10Bartosz Dziewoński: "Filed T119838, T119839, T119840." [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/255937 (https://phabricator.wikimedia.org/T53045) (owner: 10Bartosz Dziewoński) [20:39:01] 10VisualEditor: Editing Infobox display - https://phabricator.wikimedia.org/T119843#1837335 (10Krenair) This sounds like you might be using VE? Can you give more detail please? [20:39:56] 10VisualEditor: Editing Infobox display - https://phabricator.wikimedia.org/T119843#1837337 (10Aklapper) Hi @Lieutenant_Jade, thanks for taking the time to report this! Unfortunately this report lacks some information. If you have time and can still reproduce the problem, please [[ https://www.mediawiki.org/wiki... [20:43:09] 10VisualEditor, 10SyntaxHighlight: Can't open two code blocks in one editor session (aka Uncaught TypeError: Cannot read property 'fail' of null) - https://phabricator.wikimedia.org/T119815#1837338 (10Florian) a:3Florian For everyone who want to test it locally: You need to checkout current deployment branch... [20:43:18] 10VisualEditor, 10MediaWiki-extensions-CodeEditor, 10SyntaxHighlight: Can't open two code blocks in one editor session (aka Uncaught TypeError: Cannot read property 'fail' of null) - https://phabricator.wikimedia.org/T119815#1837341 (10Florian) p:5Triage>3Unbreak! [22:33:46] 10VisualEditor: Editing Infobox display - https://phabricator.wikimedia.org/T119843#1837427 (10Lieutenant_Jade) {F3025192} This is what i get when i try to edit the infobox The infobox is scripted to be portable with 65 lines. Google chrome Version 46.0.2490.86 m Windows 10