import {CDN_IMG_URL} from './config'

const EDITOR_ROOT_URL = `${CDN_IMG_URL}`
const EDITOR_LANGUAGE = `${EDITOR_ROOT_URL}langs/zh_CN.js`
let fullEditor = {
  language:'zh_CN',
  language_url: EDITOR_LANGUAGE,
  height: 500,
  plugins: 'print preview searchreplace autolink directionality visualblocks visualchars fullscreen link template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount imagetools contextmenu colorpicker textpattern help',
  toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent  | removeformat',
}

let textEditor = {
  language:'zh_CN',
  language_url: EDITOR_LANGUAGE,
  height: 500,
  menubar: false,
  plugins: [
    'advlist autolink lists link charmap print preview anchor textcolor colorpicker',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table contextmenu paste code help'
  ],
  toolbar: 'undo redo |  formatselect | bold italic backcolor forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help'
}

export {
  fullEditor,
  textEditor,
  EDITOR_ROOT_URL
}