zeus 4 years ago
parent
commit
445a74b0dc
  1. 6
      public/adoc.html
  2. 29
      src/components/doclive/runLlo.vue

6
public/adoc.html

@ -0,0 +1,6 @@
<html>
<head></head>
<body>
Add text
</body>
</html>

29
src/components/doclive/runLlo.vue

@ -1,5 +1,6 @@
<template>
<div>
<!--
<b-row no-gutters w-100 h-100
v-if="showlloedit"
>
@ -14,9 +15,25 @@
</b-col>
</b-row>
-->
<b-row no-gutters w-100 h-100
v-if="showlloedit"
>
<b-col cols="12" sm="12" md="12" >
<iframe id="llocontainer1"
src="http://localhost:8080/adoc.html"
width="100%"
height="750"
frameBorder="0"
name="Forgot_Iframe1">
</iframe>
</b-col>
</b-row>
</div>
</template>
<script>
import Vue from 'vue'
@ -317,9 +334,17 @@ export default {
console.log(" ascii "+JSON.stringify(value_compiled))
var asciiidtext = 'firstElement'
this.asciidochtml = value_compiled
document.getElementById('llocontainer').contentWindow.document.getElementById(asciiidtext).innerHTML = this.asciidochtml
//document.getElementById('llocontainer').contentWindow.document.getElementById(asciiidtext).innerHTML = this.asciidochtml
//this.addtask (asciiID, divascii);
var iframe = document.getElementById('llocontainer1'),
iframedoc = iframe.contentDocument || iframe.contentWindow.document;
iframedoc.body.innerHTML = this.asciidochtml
theIframe.contentWindow.location = theIframe.src
//var frame = document.createElement("iframe");
//frame.src = URL.createObjectURL(new Blob([this.asciidochtml], {type: "text/html"}));
//document.body.appendChild(frame)
}catch (ex) {
console.log(" ascerror "+JSON.stringify(ex))

Loading…
Cancel
Save