From 0ed1a18189bca3297856ce07aaf839f357137876 Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 2 Feb 2018 08:46:04 +0000 Subject: [PATCH] CCM NG: Added some files to to the wildfly-swarm bundle git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5230 8810af33-2d31-482b-a856-94f89814c4df Former-commit-id: 7c775f7bf836cbde712df9931fa205b74b52d395 --- .../WEB-INF/conf/registry/registry.properties | 1 + .../webapp/ccm-editor/ccm-editor-loader.js | 72 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/conf/registry/registry.properties create mode 100644 ccm-bundle-devel-wildfly-swarm/src/main/webapp/ccm-editor/ccm-editor-loader.js diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/conf/registry/registry.properties b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/conf/registry/registry.properties new file mode 100644 index 000000000..9bb7b6ea9 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/WEB-INF/conf/registry/registry.properties @@ -0,0 +1 @@ +waf.config.packages=ccm-core \ No newline at end of file diff --git a/ccm-bundle-devel-wildfly-swarm/src/main/webapp/ccm-editor/ccm-editor-loader.js b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/ccm-editor/ccm-editor-loader.js new file mode 100644 index 000000000..871bbf362 --- /dev/null +++ b/ccm-bundle-devel-wildfly-swarm/src/main/webapp/ccm-editor/ccm-editor-loader.js @@ -0,0 +1,72 @@ +requirejs(["./ccm-editor", + "./ccm-cms-editor", + "../webjars/requirejs-domready/2.0.1/domReady!"], + function(editor, cmseditor, doc) { + + editor.addEditor(".editor-textarea", { + "commandGroups": [ + { + "name": "blocks", + "title": "Format blocks", + "commands": [ + editor.FormatBlockCommand + ] + }, + { + "name": "format-text", + "title": "Format text", + "commands": [ + editor.MakeBoldCommand, + editor.MakeItalicCommand, + editor.MakeUnderlineCommand, + editor.StrikeThroughCommand, + editor.SubscriptCommand, + editor.SuperscriptCommand, + editor.RemoveFormatCommand, + editor.InsertExternalLinkCommand, + cmseditor.InsertInternalLinkCommand, + cmseditor.InsertMediaAssetCommand + ] + }, + { + "name": "insert-list", + "title": "Insert list", + "commands": [ + editor.InsertUnorderedListCommand, + editor.InsertOrderedListCommand + ] + }, + { + "name": "html", + "title": "HTML", + "commands": [editor.ToggleHtmlCommand] + } + ], + "settings": { + "ccm-editor-css.path": "/libreccm/ccm-editor/ccm-editor.css", + "font-awesome.path": "/libreccm/webjars/font-awesome/4.7.0/css/font-awesome.min.css", + "formatBlock.blocks": [ + { + "element": "h3", + "title": "Heading 3" + }, + { + "element": "h4", + "title": "Heading 4" + }, + { + "element": "h5", + "title": "Heading 5" + }, + { + "element": "h6", + "title": "Heading 6" + }, + { + "element": "p", + "title": "Paragraph" + } + ] + } + }); +});