Naviga Writer
6.3.3
6.3.3
  • Naviga Writer
  • Release notes
    • 6.3.3
    • 6.3.2
    • 6.3.1
    • 6.2.1
    • 6.2.0
    • 6.1.2
    • 6.1.1
    • 6.1.0
    • 6.0.0
    • 5.3.0
  • Introduction
    • Authoring
    • Developing
    • Publishing
    • User stories and reference cases
  • User Guide
    • Writer User Guide
      • The Content Area and Tabs
        • Help menu
        • Language menu
        • Article name
        • Writing teasers
        • Content area
        • Information
        • Search and replace words
        • History Button
        • Save and publish flow
        • Tabs
          • Meta Tab
            • Author
            • Channels
          • Integrations Tab
          • Image and Article search Tab
        • Locked article
      • Text management
      • Writer Keyboard Shortcuts
      • Personal Writer template
      • Channels to control access
      • Images User Guide
      • Common questions when starting using Writer
  • Admin Guide
    • Configuration files
    • Configurations Guide
    • Configuration of Writer templates
    • Publish Flow
      • Default configuration definitions
      • Starting part of the configuration
      • Publish flow config details
      • Configuration of calendarLocale
      • Preconditions for roles in the publish flow
    • Generic properties for Objects
      • Generic properties configuration
    • Image Services
      • Photo uploader
      • Binary Service Light
      • ImEngine
      • Imgix
    • Available Plugins
      • Naviga developed plugins
        • Plugins in earlier versions of Writer
      • Third-party plugins
  • Developer guide
    • Writer plugin development
      • Quickstart
      • Plugin overview
      • Creating an content object plugin
      • Validation and hooks
      • Interacting with external resources
    • Writer Plugin Building Blocks
      • Package
      • Component
      • Node
      • Converter
      • Events
    • Writer plugin style guide
      • CSS Guidelines
      • CSS variables, colors and fonts
      • UI Components
    • Tutorials
      • Popover & text analysis
      • Search & replace
      • Concept interaction
    • Infomaker NewsML
      • Overview
      • Document relations and types
      • Extensions XSD
      • NewsItem
      • ConceptItem
      • PlanningItem
      • Examples
        • NewsItem - Text
        • NewsItem - Picture
        • NewsItem - PDF
        • ConceptItem - Author
        • ConceptItem - Category
        • ConceptItem - Channel
        • ConceptItem - Content Profile
        • ConceptItem - Event
        • ConceptItem - Organisation
        • ConceptItem - Person
        • ConceptItem - Place (point)](point)](point)](point)](point)](point)](point)](point)](point)](point)]
        • ConceptItem - Place (polygon)](polygon)](polygon)](polygon)](polygon)](polygon)](polygon)](polygon)]
        • ConceptItem - Section
        • ConceptItem - Story
        • ConceptItem - Topic
        • PlanningItem
    • Media Enrichment
      • Images
  • API Reference
    • Writer Api
      • Api
      • Article
      • Browser
      • Concept
      • ConceptService
      • Document
      • Events
      • NewsItem
      • Router
      • Ui
      • Upload
      • User
      • settings
    • UI Components
      • UIAvatar
      • UIButton
      • UIByline
      • UICheckbox
      • UIChip
      • UIDatePicker
      • UIDatetimeFieldEditor
      • UIDropdown
      • UIFieldEditor
      • UIIconButton
      • UIInlineImage
      • UIPagination
      • UISelect
      • UITimePicker
      • UIToggle
      • UITooltip
      • UIInputText
      • UITextarea
Powered by GitBook
On this page
  • Properties
  • getVersion() ⇒ string
  • getConfigValue(id, path, defaultValue) ⇒ *
  • Parameters
  • Example
  • Example
  • hasLocalConfiguration() ⇒ Boolean
  • getPluginModule(moduleId) ⇒ Object
  • Parameters
  • getPluginModulesForTarget(targetId)
  • Parameters

Was this helpful?

  1. API Reference
  2. Writer Api

Api

Top level api object from which all other api modules are available.

Properties

Name

Type

Description

article

Article

document

Document

newsItem

NewsItem

events

Events

router

Router

browser

Browser

ui

Ui

upload

Upload

settings

Settings

user

User

history

History

Required -

stateHandler

StateHandler

Required - Reference to a StateHandler

editorSession

EditorSession

Required - Substance editorSession

doc

Doc

Required - The editorSession document

getVersion() ⇒ string

Get current version of the Writer

Returns: string - Version tag

getConfigValue(id, path, defaultValue) ⇒ *

Get configuration value in a plugins local configuration data section. If no path is given the full configuration object for the plugin instance is returned.

Returns: * - The value of the wanted configuration path or default value

Parameters

Param

Type

Description

id

string

Required - Plugin id to fetch configuration value for

path

string

Required - Optional configuration path in the data section

defaultValue

*

Required - Optional default value if no value is found

Example

{
   "vendor": "vendor.tld",
   "name": "myplugin",
   "enabled": true,
   "data": {
     "mykey": "Configuration value"
   }
 },

Example

import {api} from 'writer'
var apiEndpoint = api.getConfigValue('myplugin', 'mykey');`

hasLocalConfiguration() ⇒ Boolean

Check if the configuration has been overridden with local configuration

getPluginModule(moduleId) ⇒ Object

Return a fresh instance of a specific plugin provided module

Parameters

Param

Type

Description

moduleId

string

Required - Module id

getPluginModulesForTarget(targetId)

Get modules targeted at a specific consumer

Parameters

Param

Type

Description

targetId

string

Required - Target id of the consumer

PreviousWriter ApiNextArticle

Last updated 5 years ago

Was this helpful?

Required - See

Required - See

Required - See

Required - See

Required - See

Required - See

Required - See

Required - See

Required - See

Required - See

Article
Document
NewsItem
Events
Router
Browser
Ui
Upload
Settings
User