Re: [Wikitech-l] Editing JSON with VisualEditor (was: Editing JSON in MediaWiki)

2017-04-10 Thread C. Scott Ananian
I was thinking of the pre-WIkimania hackathon.

There are a *lot* of extensions installed on WMF wikis.  Ideally we'd start
getting extension maintainers to take over the Parsoid/VE support for their
extensions.
 --scott

On Mon, Apr 10, 2017 at 3:37 PM, James Hare  wrote:

> This upcoming hackathon might be too soon, considering we have more urgent
> priorities that need to be addressed first (like having it not be broken on
> the Beta Cluster). Beyond that, it’s something that can be considered, but
> how many people are actually interested in this?
>
>
> On April 10, 2017 at 12:26:26 PM, C. Scott Ananian (canan...@wikimedia.org)
> wrote:
>
> I *believe* so.  Both Parsoid and Visual Editor have extension
> interfaces.  However, they haven't really been used by folks outside WMF
> yet.  I'm eager to have that change.
>
> We're thinking about proposing a "Workshop" session at wikimania for "How
> to write extensions for Parsoid and Visual Editor".  But the area's only
> half-baked, it might be more appropriate to do it as a hackathon session
> instead.  Thoughts?
>   --scott
>
> On Mon, Apr 10, 2017 at 3:20 PM, James Hare  wrote:
>
>> On April 10, 2017 at 12:15:34 PM, C. Scott Ananian (
>> canan...@wikimedia.org) wrote:
>>
>> More related functionality: Parsoid supports JSON as a contenttype, and
>> emits a special type of table (the same as the HTML table generated by the
>> HTML handler for JSON in mediawiki). You can edit this in VE, although w/o
>> any special support, and Parsoid will serialize it back to JSON.
>>
>> This could be turned into a very pleasant type-aware editor for JSON in VE
>> pretty easily.
>> --scott
>>
>>
>> This is actually very interesting.
>>
>> So, take a CollaborationHubContent page: https://wpx.wmflabs.org/
>> w/index.php/WPX:WikiProject_Dogs
>>
>> At some point we would like to create a VisualEditor-type editing
>> interface. Note that behind the scenes, that page is JSON. So in this
>> “VisualEditor” you would edit fields and such and it would appear you are
>> editing the page as though it were a regular document, but really you are
>> just changing values in a JSON blob.
>>
>> Since Parsoid supports JSON as a content type, would it thus be trivial
>> to create an extension for VisualEditor to support editing this content
>> type and others like it?
>>
>>
>> Thanks,
>> James Hare
>>
>
>
>
> --
> (http://cscott.net)
>
>


-- 
(http://cscott.net)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Editing JSON with VisualEditor (was: Editing JSON in MediaWiki)

2017-04-10 Thread James Hare
This upcoming hackathon might be too soon, considering we have more urgent
priorities that need to be addressed first (like having it not be broken on
the Beta Cluster). Beyond that, it’s something that can be considered, but
how many people are actually interested in this?


On April 10, 2017 at 12:26:26 PM, C. Scott Ananian (canan...@wikimedia.org)
wrote:

I *believe* so.  Both Parsoid and Visual Editor have extension interfaces.
However, they haven't really been used by folks outside WMF yet.  I'm eager
to have that change.

We're thinking about proposing a "Workshop" session at wikimania for "How
to write extensions for Parsoid and Visual Editor".  But the area's only
half-baked, it might be more appropriate to do it as a hackathon session
instead.  Thoughts?
  --scott

On Mon, Apr 10, 2017 at 3:20 PM, James Hare  wrote:

> On April 10, 2017 at 12:15:34 PM, C. Scott Ananian (canan...@wikimedia.org)
> wrote:
>
> More related functionality: Parsoid supports JSON as a contenttype, and
> emits a special type of table (the same as the HTML table generated by the
> HTML handler for JSON in mediawiki). You can edit this in VE, although w/o
> any special support, and Parsoid will serialize it back to JSON.
>
> This could be turned into a very pleasant type-aware editor for JSON in VE
> pretty easily.
> --scott
>
>
> This is actually very interesting.
>
> So, take a CollaborationHubContent page: https://wpx.wmflabs.org/
> w/index.php/WPX:WikiProject_Dogs
>
> At some point we would like to create a VisualEditor-type editing
> interface. Note that behind the scenes, that page is JSON. So in this
> “VisualEditor” you would edit fields and such and it would appear you are
> editing the page as though it were a regular document, but really you are
> just changing values in a JSON blob.
>
> Since Parsoid supports JSON as a content type, would it thus be trivial to
> create an extension for VisualEditor to support editing this content type
> and others like it?
>
>
> Thanks,
> James Hare
>



--
(http://cscott.net)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Editing JSON with VisualEditor (was: Editing JSON in MediaWiki)

2017-04-10 Thread C. Scott Ananian
I *believe* so.  Both Parsoid and Visual Editor have extension interfaces.
However, they haven't really been used by folks outside WMF yet.  I'm eager
to have that change.

We're thinking about proposing a "Workshop" session at wikimania for "How
to write extensions for Parsoid and Visual Editor".  But the area's only
half-baked, it might be more appropriate to do it as a hackathon session
instead.  Thoughts?
  --scott

On Mon, Apr 10, 2017 at 3:20 PM, James Hare  wrote:

> On April 10, 2017 at 12:15:34 PM, C. Scott Ananian (canan...@wikimedia.org)
> wrote:
>
> More related functionality: Parsoid supports JSON as a contenttype, and
> emits a special type of table (the same as the HTML table generated by the
> HTML handler for JSON in mediawiki). You can edit this in VE, although w/o
> any special support, and Parsoid will serialize it back to JSON.
>
> This could be turned into a very pleasant type-aware editor for JSON in VE
> pretty easily.
> --scott
>
>
> This is actually very interesting.
>
> So, take a CollaborationHubContent page: https://wpx.wmflabs.org/
> w/index.php/WPX:WikiProject_Dogs
>
> At some point we would like to create a VisualEditor-type editing
> interface. Note that behind the scenes, that page is JSON. So in this
> “VisualEditor” you would edit fields and such and it would appear you are
> editing the page as though it were a regular document, but really you are
> just changing values in a JSON blob.
>
> Since Parsoid supports JSON as a content type, would it thus be trivial to
> create an extension for VisualEditor to support editing this content type
> and others like it?
>
>
> Thanks,
> James Hare
>



-- 
(http://cscott.net)
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Editing JSON with VisualEditor (was: Editing JSON in MediaWiki)

2017-04-10 Thread James Hare
On April 10, 2017 at 12:15:34 PM, C. Scott Ananian (canan...@wikimedia.org)
wrote:

More related functionality: Parsoid supports JSON as a contenttype, and
emits a special type of table (the same as the HTML table generated by the
HTML handler for JSON in mediawiki). You can edit this in VE, although w/o
any special support, and Parsoid will serialize it back to JSON.

This could be turned into a very pleasant type-aware editor for JSON in VE
pretty easily.
--scott


This is actually very interesting.

So, take a CollaborationHubContent page:
https://wpx.wmflabs.org/w/index.php/WPX:WikiProject_Dogs

At some point we would like to create a VisualEditor-type editing
interface. Note that behind the scenes, that page is JSON. So in this
“VisualEditor” you would edit fields and such and it would appear you are
editing the page as though it were a regular document, but really you are
just changing values in a JSON blob.

Since Parsoid supports JSON as a content type, would it thus be trivial to
create an extension for VisualEditor to support editing this content type
and others like it?


Thanks,
James Hare
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l