Announcement

Collapse
No announcement yet.

Mivascript in rich text editor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mivascript in rich text editor

    Not sure if I'm missing something or if it just doesn't work, but mivascript doesn't work in the rich text editor in page builder? I'm applying it to the source code mode. I tried this as a test but it just outputs as is.

    <mvt:assign name="g.var" value=" 'hello world' ">
    &mvt:global:var;

    #2
    heatherwebdev You are correct the Rich Text Editor will not render Miva Template code. The Rich Text Editor was not made for template code rather it was made for marketing or store owners to easily add text to a page in the store.

    Is there a reason why you don't create a custom flex component in which you can write template code to achieve the feature.

    Here is a really basic example of a Flex Component that uses Miva Template code and no JavaScript: https://github.com/mivaecommerce/fle...mparison-table

    You can see in the instance.mvt file is where you would add the custom template code to achieve the feature.

    What is the feature you are trying to achieve?
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    Working...
    X