Hi All,
I am using the VE model in a Gadget and I am wondering how can I get the headings which have been entered on the VE surface for further processing
Thanks
ve.dm.Document contains a cache of nodes by type which you can access with ve.dm.Document.prototype.getNodesByType:
ve.init.target.surface.model.documentModel.getNodesByType( 'mwHeading', true );
This appears to work for the initial document, but may be broken with regards to newly added nodes.
On Tue, 26 May 2020 at 10:43, Egbe Eugene [email protected] wrote:
Hi All,
I am using the VE model in a Gadget and I am wondering how can I get the headings which have been entered on the VE surface for further processing
Thanks _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I've filed https://phabricator.wikimedia.org/T254354 to track the updating issue.
On Wed, 3 Jun 2020 at 15:04, Ed Sanders [email protected] wrote:
ve.dm.Document contains a cache of nodes by type which you can access with ve.dm.Document.prototype.getNodesByType:
ve.init.target.surface.model.documentModel.getNodesByType( 'mwHeading', true );
This appears to work for the initial document, but may be broken with regards to newly added nodes.
On Tue, 26 May 2020 at 10:43, Egbe Eugene [email protected] wrote:
Hi All,
I am using the VE model in a Gadget and I am wondering how can I get the headings which have been entered on the VE surface for further processing
Thanks _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Thanks very much for the reply Ed.
On Wed, Jun 3, 2020 at 3:10 PM Ed Sanders [email protected] wrote:
I've filed https://phabricator.wikimedia.org/T254354 to track the updating issue.
On Wed, 3 Jun 2020 at 15:04, Ed Sanders [email protected] wrote:
ve.dm.Document contains a cache of nodes by type which you can access
with
ve.dm.Document.prototype.getNodesByType:
ve.init.target.surface.model.documentModel.getNodesByType( 'mwHeading', true );
This appears to work for the initial document, but may be broken with regards to newly added nodes.
On Tue, 26 May 2020 at 10:43, Egbe Eugene [email protected] wrote:
Hi All,
I am using the VE model in a Gadget and I am wondering how can I get the headings which have been entered on the VE surface for further
processing
Thanks _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l