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

Copy

id

com.naviga.copyArticle

description

An action to open a copy article modal

import { Plugin, Utility } from '@root'

const MyAwesomeComponent = props => {
    const copyArticle = Utility.useLazyRef(() => {
        return Plugin.getAction('your-bounded-action-id')
    })
    
    /**
        Now the action is bounded to the ref we can call it and pass in the uuid
        of the article we want to copy. This will open up a modal with the article
        and we are able to make changes directly to the copy
        
        copyArticle.current("838d42cf-507a-c701-f46d-6cd0a738cca4")
    */
}
PreviousOpenNextGet article

Last updated 3 years ago

Was this helpful?