Action

Writing Module

Posted by @nahumck, Last update over 6 years ago - Unlisted

Switch to the Writing Module, which consists of the Writing workspace, Writing action group in the extended keyboard row, and the Social action group in the action list. If on the iPad, this will load the draft drawer.

Steps

  • script

    // Get device model
    var model = device.model;
    
    var module = "Writing"
    var workspace = Workspace.find(module);
    var keyboard = ActionGroup.find(module);
    var group = ActionGroup.find("Publishing");
    
    // Show draft list if action is run on an iPad
    if (model == "iPad") {
    	app.showDraftList();
    }
    else {
    	app.hideActionList();
    }
    
    app.loadActionGroup(group);
    app.loadKeyboardActionGroup(keyboard);
    app.applyWorkspace(workspace);
    editor.activate();

Options

  • After Success Nothing
    Notification Error
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.