Editor API

This section describes the API used by Pageflow plugins to extend and integrate with the Pageflow editor. The editor object can be imported via:

import {editor} from 'pageflow/editor';
Members
▸ editor
▸ Failures
▸ new Failure()
▸ SavingRecordsCollection

Editor - Models/Collections

This section describes mixins and utilities that can be used in Backbone models and collection.

Members
▸ configurationContainer(options = {})
▸ delayedDestroying
▸ entryTypeEditorControllerUrls
▸ failureTracking
▸ ForeignKeySubsetCollection

Editor - Input Views

Editor specific Backbone views that can be used together with ConfigurationEditorView:

import {FileInputView} from 'pageflow/editor';
import {ConfigurationEditorView} from 'pageflow/ui';

// ...

this.configurationEditor = new ConfigurationEditorView({
  model: this.model
});

this.configurationEditor.tab('files', function() {
  this.input('image', FileInputView, {
    // ...
  });
});
Members
▸ EditConfigurationView
▸ new ReferenceInputView()
▸ new FileInputView()
▸ new OembedUrlInputView(options?)

Editor - Misc Views

General purpose Backbone views and mixins exported by pageflow/editor.

Members
▸ modelLifecycleTrackingView(options)
▸ DestroyMenuItem
▸ new ListView(options)
▸ new ModelThumbnailView()

UI - Input Views

Backbone views that can be used together with ConfigurationEditorView. pageflow/ui.

import {ConfigurationEditorView, TextInputView} from 'pageflow/ui';

// ...

this.configurationEditor = new ConfigurationEditorView({
  model: this.model
});

this.configurationEditor.tab('general', function() {
  this.input('text', TextInputView, {
    // ...
  });
});
Members
▸ inputView
▸ inputWithPlaceholderText
▸ new CheckBoxGroupInputView(options?)
▸ new CheckBoxInputView(options?)
▸ new RadioButtonGroupInputView(options?)
▸ new ColorInputView(options?)
▸ new LabelOnlyView()
▸ new NumberInputView(options?)
▸ new ProxyUrlInputView(options)
▸ new SelectInputView(options?)
▸ new SeparatorView()
▸ new SliderInputView(options?)
▸ new TextAreaInputView(options?)
▸ new TextInputView(options?)
▸ new UrlDisplayView(options?)
▸ new UrlInputView(options?)

UI - Table Views

Backbone views exported by pageflow/ui to display tables.

Members
▸ DeleteRowTableCellView
▸ EnumTableCellView
▸ IconTableCellView
▸ PresenceTableCellView
▸ TableCellView
▸ TextTableCellView

UI - Misc Views

General purpose Backbone views exported by pageflow/ui.

Members
▸ new ConfigurationEditorView(options?)
▸ new FileMetaDataItemValueView(options?)
▸ new TabsView(options?)

UI - Utils

Utility functions exported by pageflow/ui.

Members
▸ attributeBindingUtils
▸ cssModulesUtils
▸ i18nUtils

Test Helpers

Utility functions exported by pageflow/testHelpers.

Members
▸ factories
▸ setupGlobals
▸ useFakeFeatures(scope, names)
▸ useFakeTranslations(translations, options = {})