Dashboard Writer
5.0.1
5.0.1
  • About
  • Changelog
  • User
    • How to
  • Admin
    • Config
      • Store author data
      • Writer 7 and later
      • Writer 8 and later
      • Structure
        • Article size
      • Copy articles
    • Requirements
    • Migration
      • v3 => v4
      • v4 => v5
  • Developer
    • Develop with Writer
      • Create
      • Open
      • Copy
      • Get article
      • Get instance
Powered by GitBook
On this page

Was this helpful?

  1. Developer
  2. Develop with Writer

Create

id

com.naviga.writer-create-new-article

description

Create new article in Writer application/modal or in a new tab

import { Plugin, Utility } from '@root'

const MyAwesomeComponent = props => {
    const createNewArticle = Utility.useLazyRef(() => {
        return Plugin.getAction('your-bounded-action-id')
    })
     
    createNewArticle.current()

    /**
        Depending on current settings active in your plugin it will either open a new
        article in a new tab or a modal. If Writer plugin is active in current 
        workspace the new article will open within that plugin.
    */
}
PreviousDevelop with WriterNextOpen

Last updated 3 years ago

Was this helpful?