{"version":3,"file":"js/application.js","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AAGA;AAAA;AACA;AAAA;AAIA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AAGA;AAAA;AACA;AAAA;AAIA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AAGA;AAAA;AACA;AAAA;AAIA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAIA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAKA","sources":["webpack://app/./app/javascript/application.js","webpack://app/./app/javascript/packs/quill-editor.js"],"sourcesContent":["/* eslint no-console:0 */\n// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n//\n// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate\n// layout file, like app/views/layouts/application.html.erb\n\n// Uncomment to copy all static images under ./images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\n// const images = require.context('./images', true)\n// const imagePath = (name) => images(name, true)\nimport \"./packs/quill-editor\"","import Quill from 'quill';\ndocument.addEventListener(\"DOMContentLoaded\", function (event) {\n if (document.querySelector('#site-editor-container')) { \n var siteQuill = new Quill('#site-editor-container', {\n modules: {\n toolbar: [\n [{ header: [1, 2, 3, 4, 5, 6, false] }],\n [{ color: [] }],\n [{ size: [] }],\n [\n 'bold', 'italic', 'underline', 'strike',\n { 'script': 'super'},\n { 'script': 'sub' },\n 'code', 'link'\n ],\n ['blockquote', 'code-block'],\n [{ list: 'ordered' }, { list: 'bullet' }],\n [{ align: ['center', 'right', 'justify', false] }],\n [{ indent: '-1'}, { indent: '+1' }]\n \n \n ],\n },\n theme: 'snow'\n });\n\n var bioQuill = new Quill('#bio-editor-container', {\n modules: {\n toolbar: [\n [{ header: [1, 2, 3, 4, 5, 6, false] }],\n [{ color: [] }],\n [{ size: [] }],\n [\n 'bold', 'italic', 'underline', 'strike',\n { 'script': 'super'},\n { 'script': 'sub' },\n 'code', 'link'\n ],\n ['blockquote', 'code-block'],\n [{ list: 'ordered' }, { list: 'bullet' }],\n [{ align: ['center', 'right', 'justify', false] }],\n [{ indent: '-1'}, { indent: '+1' }]\n \n \n ],\n },\n theme: 'snow'\n });\n\n var cvQuill = new Quill('#cv-editor-container', {\n modules: {\n toolbar: [\n [{ header: [1, 2, 3, 4, 5, 6, false] }],\n [{ color: [] }],\n [{ size: [] }],\n [\n 'bold', 'italic', 'underline', 'strike',\n { 'script': 'super'},\n { 'script': 'sub' },\n 'code', 'link'\n ],\n ['blockquote', 'code-block'],\n [{ list: 'ordered' }, { list: 'bullet' }, { list: 'unordered' }],\n [{ align: ['center', 'right', 'justify', false] }],\n [{ indent: '-1'}, { indent: '+1' }]\n \n \n ],\n },\n theme: 'snow'\n });\n\n document.querySelector('#site-form').onsubmit = function () {\n var body = document.querySelector('input[class=sitetext-content]');\n body.value = siteQuill.root.innerHTML\n };\n\n document.querySelector('#bio-form').onsubmit = function () {\n var body = document.querySelector('input[class=biotext-content]');\n body.value = bioQuill.root.innerHTML\n };\n\n document.querySelector('#cv-form').onsubmit = function () {\n var body = document.querySelector('input[class=cvtext-content]');\n body.value = cvQuill.root.innerHTML\n };\n }\n});\n\n\n\n\nexport default Quill;\n"],"names":[],"sourceRoot":""}