diff --git a/loleaflet/html/framed.doc.html b/loleaflet/html/framed.doc.html
index df0207c84..df68f69fe 100644
--- a/loleaflet/html/framed.doc.html
+++ b/loleaflet/html/framed.doc.html
@@ -7,14 +7,6 @@
This demonstrates using the Python InsertText.py and Capitalise.py
scripts from javascript across iframes.
-
- To test this, do 'make run', and then in your browser open the
- equivalent of
- http://snorken.local:9980/loleaflet/3304e9093/framed.doc.html if the
- browser is running on a different machine, or
- http://localhost:9980/loleaflet/3304e9093/framed.doc.html if running
- on the same machine.
-
-->
@@ -82,6 +74,12 @@
});
}
+ function ShowMenubar(visible) {
+ var messageId = visible ? 'Show_Menubar' : 'Hide_Menubar';
+ window.frames[0].postMessage(JSON.stringify({'MessageId': 'Host_PostmessageReady'}), '*');
+ window.frames[0].postMessage(JSON.stringify({'MessageId': messageId}), '*');
+ }
+
// This function is invoked when the iframe posts a message back.
function receiveMessage(event) {
@@ -126,14 +124,21 @@
-
Note: Set net/frame_ancestors in loolwsd.xml to contain 'file:' (without the quotes, but with the colon), otherwise you will get CSP violation. And force reload, or clear caches, otherwise you might get served from the browser cache..
+
PostMessage test harness
+
+
Run python InsertText.py script
+
Run Capitalize.py script
+
+
Various other messages to post
+
-
Modified Status:
- Saved
-
+
Modified Status: Saved
-
+
UI modification
+
-
+
Document frame
+
+
+
diff --git a/loleaflet/html/framed.html b/loleaflet/html/framed.html
index cee6b610a..036cc8019 100644
--- a/loleaflet/html/framed.html
+++ b/loleaflet/html/framed.html
@@ -24,13 +24,8 @@
invoke Python functions that list, add, and delete named ranges
in a Calc document being edited.
- To test this, do 'make run', and then in your browser open the
- equivalent of
- http://snorken.local:9980/loleaflet/3304e9093/framed.html if the
- browser is running on a different machine, or
- http://localhost:9980/loleaflet/3304e9093/framed.html if running
- on the same machine.
-
+ To test this, do 'make run', and then in your browser open:
+ https://localhost:9980/loleaflet/dist/framed.html?file_path=/opt/libreoffice/online/test/data/hello-world.ods
-->
@@ -117,12 +112,6 @@
'*');
}
- function ShowMenubar(visible) {
- var messageId = visible ? 'Show_Menubar' : 'Hide_Menubar';
- window.frames[0].postMessage(JSON.stringify({'MessageId': 'Host_PostmessageReady'}), '*');
- window.frames[0].postMessage(JSON.stringify({'MessageId': messageId}), '*');
- }
-
// This function is invoked when the iframe posts a message back.
function receiveMessage(event) {
@@ -205,18 +194,15 @@
Click to delete the named range called
-