Sha256: 9bd56a1e89aa0dabf6f3471a3420a18cfbca4653219785b3fdbef3163cddc0e3

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

<% asset_host = ActionController::Base.config.asset_host %>

<link rel="preload" href="<%= asset_host %><%= assets_prefix %>/tinymce/skins/alchemy/skin.min.css" as="style" />
<link rel="preload" href="<%= asset_host %><%= assets_prefix %>/tinymce/skins/alchemy/content.min.css" as="style" />
<% if Alchemy::Tinymce.init[:content_css] %>
  <link rel="preload" href="<%= asset_host %><%= Alchemy::Tinymce.init[:content_css] %>" as="style" />
<% end %>
<% Alchemy::Tinymce.preloadable_plugins.each do |plugin| %>
  <link rel="preload" href="<%= asset_host %><%= assets_prefix %>/tinymce/plugins/<%= plugin %>/plugin.min.js" as="script">
<% end %>

<script>
  // Setting TinyMCE path.
  var tinyMCEPreInit = {
    <% if ActionController::Base.config.asset_host_set? %>
    base: '<%= asset_url(assets_prefix + '/tinymce') %>',
    <% else %>
    base: '<%= asset_path(assets_prefix + '/tinymce') %>',
    <% end %>
    suffix: '.min'
  };
  // Holds the default Alchemy TinyMCE configuration
  Alchemy.TinymceDefaults = {
    plugins: '<%= Alchemy::Tinymce.plugins.join(',') %>',
    <% Alchemy::Tinymce.init.each do |k, v| %>
    <%= k %>: <%== v.to_json %>,
    <% end %>
  };
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/tinymce/_setup.html.erb