Webpage plugin: import & export code options in AngularJS application
Question
Hello Team,
I have bit different requirement for export and import code. Is it possible to get html and css in memory (i want to save it in DB ) instead of opening PopUp which gives an option to save zip file ?
I am using webpage plugin in angular app
Also is it possible to load page with pre-rendered or pre-supplied HTML while opening or loading container?
Requirement is to modify current behavior of export and import feature of webpage plugin
Answers (3)
@denish-kanabar you can do this way:
editor.setComponents(
`
<div> Default Template! </div>
<style> div { background: teal} </style>
`
)
Cheers!
Hi @denish-kanabar
Is it possible to get html and css in memory
editor.getHtml()
editor.getCss()
(i want to save it in DB )
please refer to the storage api
load page with pre-rendered or pre-supplied HTML
editor.setComponents('<div>Default Template!</div>')
cheers!
have checked that thread and from there only could import plugins but now issue is with calling API while adding command for editor to save in DB
Related Questions and Answers
Continue research with similar issue discussions.
Issue #837
[QUESTION] Javascript Deletes
Whenever I import, using import plugin, javascript part of the code is deleted. Is there any way to preserve it? I want to used the exporte...
Issue #3559
BUG: page.getMainComponent().view gives undefined when page is selected
Hello @artf, I want to get the HTML Element of selected page. But it returns undefined when using following code:
Issue #611
Enhancement: Save form, reuse it when required
#I don't know if this exists or not, is it possible to to create a form, save it and reuse it without pasting it into import screen. Curren...
Issue #683
Import the zip file exported from grapes js.
Hello @artf , Any possible way to import back the zip file itself, which is generated by grapes js? Thanks.
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.