md_editor_init.js
/**
 * Build web channel to WizNotePlus.
 */
Build web channel to WizNotePlus.
Build web channel to WizNotePlus .
async function createWebChannel(callback) {
    const Log = console;
    new QWebChannel(qt.webChannelTransport, async function (channel) {
        Log.debug("Web channel opened");
        const objApp = channel.objects["WizExplorerApp"];
        const objPlugin = channel.objects["JSPlugin"];
        const objModule = channel.objects["JSPluginModule"];
        window["WizExplorerApp"] = objApp 
        window["JSPlugin"] = objPlugin;
        window["JSPluginModule"] = objModule;
        callback(objApp, objPlugin, objModule);
    });
}
async function createWebChannel ( callback ) { const Log = console ; new QWebChannel ( qt . webChannelTransport , async function ( channel ) { Log . debug ( "Web channel opened" ) ; const objApp = channel . objects [ "WizExplorerApp" ] ; const objPlugin = channel . objects [ "JSPlugin" ] ; const objModule = channel . objects [ "JSPluginModule" ] ; window [ "WizExplorerApp" ] = objApp window [ "JSPlugin" ] = objPlugin ; window [ "JSPluginModule" ] = objModule ; callback ( objApp , objPlugin , objModule ) ; } ) ; }
Build web channel to WizNotePlus.
Build web channel to WizNotePlus .
// Only used for APIs test.