From 5513dc178e11ba7499ee7824c6fc65b0791bec55 Mon Sep 17 00:00:00 2001 From: Jens Pelzetter Date: Sat, 9 Oct 2021 21:03:26 +0200 Subject: [PATCH] Image Node for Tiptap working --- .../components/librecms/cmsEditor.xhtml | 207 +++++++++----- .../article/article-text/edit.xhtml | 2 + .../org/librecms/CmsAdminMessages.properties | 3 + .../librecms/CmsAdminMessages_de.properties | 3 + .../main/scss/content-sections/_custom.scss | 74 ++++- .../content-sections/cms-assetpicker.ts | 2 +- .../typescript/content-sections/cms-editor.ts | 15 +- .../cms-editor/image-node/image-node.ts | 259 +++++++++++++++++- 8 files changed, 478 insertions(+), 87 deletions(-) diff --git a/ccm-cms/src/main/resources/META-INF/resources/components/librecms/cmsEditor.xhtml b/ccm-cms/src/main/resources/META-INF/resources/components/librecms/cmsEditor.xhtml index fb2234dd0..3a0acb30a 100644 --- a/ccm-cms/src/main/resources/META-INF/resources/components/librecms/cmsEditor.xhtml +++ b/ccm-cms/src/main/resources/META-INF/resources/components/librecms/cmsEditor.xhtml @@ -6,10 +6,10 @@ xmlns:cc="http://xmlns.jcp.org/jsf/composite" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" -> + > + > @@ -391,7 +405,7 @@ class="btn btn-outline-dark tiptap-strong-emph" title="#{CmsAdminMessages['cms_editor.buttons.strong_emph']}" type="button" - > + > @@ -399,7 +413,7 @@ class="btn btn-outline-dark tiptap-code" title="#{CmsAdminMessages['cms_editor.buttons.code']}" type="button" - > + > @@ -407,7 +421,7 @@ class="btn btn-outline-dark tiptap-strikethrough" title="#{CmsAdminMessages['cms_editor.buttons.strikethrough']}" type="button" - > + > @@ -415,7 +429,7 @@ class="btn btn-outline-dark tiptap-subscript" title="#{CmsAdminMessages['cms_editor.buttons.subscript']}" type="button" - > + > @@ -423,7 +437,7 @@ class="btn btn-outline-dark tiptap-superscript" title="#{CmsAdminMessages['cms_editor.buttons.superscript']}" type="button" - > + > @@ -434,8 +448,8 @@ class="btn btn-outline-dark tiptap-h#{level}" title="#{CmsAdminMessages['cms_editor.buttons.h'.concat(level)]}" type="button" - > - + > + @@ -445,7 +459,7 @@ class="btn btn-outline-dark tiptap-paragraph" title="#{CmsAdminMessages['cms_editor.buttons.paragraph']}" type="button" - > + > @@ -453,7 +467,7 @@ class="btn btn-outline-dark tiptap-blockquote" title="#{CmsAdminMessages['cms_editor.buttons.blockquote']}" type="button" - > + > @@ -461,7 +475,7 @@ class="btn btn-outline-dark tiptap-codeblock" title="#{CmsAdminMessages['cms_editor.buttons.codeblock']}" type="button" - > + > @@ -471,7 +485,7 @@ class="btn btn-outline-dark tiptap-ul" title="#{CmsAdminMessages['cms_editor.buttons.ul']}" type="button" - > + > @@ -479,7 +493,7 @@ class="btn btn-outline-dark tiptap-ol" title="#{CmsAdminMessages['cms_editor.buttons.ol']}" type="button" - > + > @@ -491,7 +505,7 @@ data-toggle="modal" title="#{CmsAdminMessage['cms_editor.buttons.insert_table']}" type="button" - > + > @@ -501,14 +515,14 @@ class="modal fade cms-editor-insert-table-dialog" id="insert-table-dialog" tabindex="-1" - > + > @@ -568,23 +582,23 @@ class="btn btn-outline-dark tiptap-remove-table" title="#{CmsAdminMessage['cms_editor.buttons.remove_table']}" type="button" - > - + > +