Sha256: 33b2a3ccf2bdc71b1ba7dcfb8543f9a474f04f20a78e6f978b8753c9d8a686b8

Contents?: true

Size: 1011 Bytes

Versions: 4

Compression:

Stored size: 1011 Bytes

Contents

// Webpack seems to "forgget" about certain libraries already being loaded 
// if javascript_pack_tag is called two times, let's include the whole Decidim admin here instead
import "entrypoints/decidim_admin"
// Custom scripts for awesome
import "src/decidim/decidim_awesome/admin/constraints"
import "src/decidim/decidim_awesome/admin/auto_edit"
import "src/decidim/decidim_awesome/admin/user_picker"
import "src/decidim/decidim_awesome/admin/proposal_sortings"
import "src/decidim/decidim_awesome/editors/tabs_focus"
import "src/decidim/decidim_awesome/admin/codemirror"
import "src/decidim/decidim_awesome/admin/check_redirections"

import {destroyQuillEditor, createQuillEditor, createMarkdownEditor} from "src/decidim/decidim_awesome/editors/editor"

$(() => {
  $(".editor-container").each((_idx, container) => {
    destroyQuillEditor(container);
    if (window.DecidimAwesome.use_markdown_editor) {
      createMarkdownEditor(container);
    } else {
      createQuillEditor(container);
    }
  });
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 app/packs/src/decidim/decidim_awesome/awesome_admin.js
decidim-decidim_awesome-0.10.2 app/packs/src/decidim/decidim_awesome/awesome_admin.js
decidim-decidim_awesome-0.10.1 app/packs/src/decidim/decidim_awesome/awesome_admin.js
decidim-decidim_awesome-0.10.0 app/packs/src/decidim/decidim_awesome/awesome_admin.js