Skip to content

Commit

Permalink
EZP-30393: Move all Online Editor front-end code to the RichText Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Jun 26, 2019
1 parent ab6202b commit 14584b3
Show file tree
Hide file tree
Showing 110 changed files with 9,381 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"no-extra-semi": "error",
"no-extra-boolean-cast": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"eqeqeq": ["error", "always"],
"indent": ["error", 4]
}
}
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 140,
"tabWidth": 4,
"semi": true,
"bracketSpacing": true,
"jsxBracketSameLine": true,
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "es5"
}
83 changes: 83 additions & 0 deletions src/bundle/Resources/encore/ez.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
const path = require('path');

module.exports = (Encore) => {
Encore.addEntry('ezplatform-richtext-onlineeditor-js', [
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-anchor.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-anchoredit.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-paragraph.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-heading.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-movedown.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-moveup.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-blocktextaligncenter.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-blocktextalignjustify.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-blocktextalignleft.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-blocktextalignright.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-removeblock.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-unorderedlist.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-orderedlist.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-table.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-tablecell.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-tablerow.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-tablecolumn.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-tableremove.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-bold.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-italic.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-underline.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-subscript.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-superscript.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-quote.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-strike.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-link.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-linkedit.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-image.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-imageupdate.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-imagevariation.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-imagelink.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-imagelinkedit.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-embed.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-embedinline.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-embedupdate.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-embedaligncenter.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-embedalignleft.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-embedalignright.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-customtag.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-customtag-edit.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-customtag-update.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-inlinecustomtag.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-inlinecustomtag-edit.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-inlinecustomtag-update.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-attributes-edit.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/buttons/ez-btn-attributes-update.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/ez-add.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-add-content.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-move-element.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-caret.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-remove-block.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-embed.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-focus-block.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-custom-tag.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/plugins/ez-elements-path.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-paragraph.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-formatted.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-text.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-list-ordered.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-list-unordered.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-list-item.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-table.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-table-row.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-table-cell.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-link.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-heading.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-embed.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-embed-inline.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-image.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-image-link.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-custom-tag.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-inline-custom-tag.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/toolbars/config/ez-custom-style.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/core/table.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/core/ez-custom-tags.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/core/ez-attributes.js'),
path.resolve(__dirname, '../public/js/OnlineEditor/core/base-richtext.js'),
]).addStyleEntry('ezplatform-richtext-onlineeditor-css', [path.resolve(__dirname, '../public/scss/alloyeditor.scss')]);
};
Binary file not shown.
Loading

0 comments on commit 14584b3

Please sign in to comment.