ardas / stripo-plugin

stripo-plugin
19 stars 32 forks source link

Unable to insert custom layout in editor preview #8

Open VitaliyOnRule opened 4 years ago

VitaliyOnRule commented 4 years ago

Client Side, Plugin, It would be great if somehow we can insert custom "html skeleton" into preview iframe and render inside it the code typed in the editor. Is it possible?

Screenshot from 2020-05-26 15-12-46

DKulaksyz commented 4 years ago

Hi there,

Not sure I got hit right, but why don't you pass the required html while plugin initialization (into "html" parameter)?

VitaliyOnRule commented 4 years ago

Hi) I want to render everything from 'html' property inside custom html skeleton - to forbid users of our platform to edit "head" tag

DKulaksyz commented 4 years ago

I think you still an use the 'html' parameter for this. Just pass the HTML code in which you have the header/footer without Stripo markup and the HTML block in the middle with the Stripo markup code. In this case your customers will not be able to modify the header/footer but will be able to work with the content in the middle.

You can contact support@stripo.email to schedule a demo during which we can discuss this workaround by voice.

On Fri, May 22, 2020 at 4:08 PM VitaliyOnRule notifications@github.com wrote:

Hi) I want to render everything from 'html' property inside custom html skeleton - to forbid users of our platform to edit "head" tag

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ardas/stripo-plugin/issues/8#issuecomment-632681590, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSNPX7SMFFUX722WIQOV53RSZ2LJANCNFSM4NHXZLJQ .

-- Best regards, Dmitry Kulaksyz PM @ Ardas Find me: LinkedIn https://www.linkedin.com/in/dmitry-kulaksyz-50b0547a/ | Skype: dn240688kdi | Cell: +380673159904 Find Ardas: www.ardas-it.com | Facebook https://www.facebook.com/ardasgroupinc | Twitter https://twitter.com/ArdasGroup | LinkedIn https://www.linkedin.com/company/ardas

VitaliyOnRule commented 4 years ago

I think you still an use the 'html' parameter for this. Just pass the HTML code in which you have the header/footer without Stripo markup and the HTML block in the middle with the Stripo markup code. In this case your customers will not be able to modify the header/footer but will be able to work with the content in the middle. You can contact support@stripo.email to schedule a demo during which we can discuss this workaround by voice. On Fri, May 22, 2020 at 4:08 PM VitaliyOnRule @.***> wrote: Hi) I want to render everything from 'html' property inside custom html skeleton - to forbid users of our platform to edit "head" tag — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#8 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSNPX7SMFFUX722WIQOV53RSZ2LJANCNFSM4NHXZLJQ . -- Best regards, Dmitry Kulaksyz PM @ Ardas Find me: LinkedIn https://www.linkedin.com/in/dmitry-kulaksyz-50b0547a/ | Skype: dn240688kdi | Cell: +380673159904 Find Ardas: www.ardas-it.com | Facebook https://www.facebook.com/ardasgroupinc | Twitter https://twitter.com/ArdasGroup | LinkedIn https://www.linkedin.com/company/ardas

So in that case user will not be able to edit html via code editor?

Thanks a lot for the answers and provided info - I have requested the demo

DKulaksyz commented 4 years ago

See you on a call then :)