From 77c6d88f80dccffca5fbf13ca4ea1c5fdcef69f9 Mon Sep 17 00:00:00 2001 From: Andy Dixon <7983876+andydixon@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:21:05 +0000 Subject: [PATCH 1/2] Update index.html Added example of cloning elements --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7328905..d55e8fa 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,6 @@
This is editable content 1.
This is editable content 2.
-
This is editable content 3.
+
This is editable content 3, and this element can be cloned.
- \ No newline at end of file + -- 2.53.0 From 18547d7a17bab2663fc0fb31df578e4303b694f6 Mon Sep 17 00:00:00 2001 From: Andy Dixon Date: Mon, 11 Nov 2024 19:44:38 +0000 Subject: [PATCH 2/2] (Not a proper) Fix for issue 31 --- cms/js/cms.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cms/js/cms.js b/cms/js/cms.js index 4a292c5..eed81a9 100644 --- a/cms/js/cms.js +++ b/cms/js/cms.js @@ -132,7 +132,12 @@ $(document).ready(function () { // Remove the buttons container as not to make things awks $(iframeDoc).find('.button-container').remove(); + // Remove pointer cursor, but need to find a proper way of removing the cursor inline style, so we can get rid of any unneeded inline styles + $(iframeDoc).find('.editable, .neo-dupe').css('cursor', 'default'); + + // Get page content and save it let frameContainerElement = $('#frameContainer').contents().get(0); + $.post("/cms/controller/", { action: "save", uri: frameContainerElement.location.pathname, -- 2.53.0