• Resolved zmkhan1990

    (@zmkhan1990)


    Hello,

    I need to put a custom transformer rule in the plugin. But there is no way out to put the custom rule.

    Below is the rule i need to put into the plugin.

    {
    “rules”: [{
    “class”: “IgnoreRule”,
    “selector”: “//script[contains(@src,’apester’)]”
    }, {
    “class”: “InteractiveRule”,
    “selector”: “div.apester-media”,
    “properties”: {
    “interactive.iframe”: {
    “type”: “multiple”,
    “children”: [{
    “type”: “fragment”,
    “fragment”: “<script type=’text/javascript’ src=’//static.apester.com/js/sdk/latest/apester-sdk.min.js’></script>”
    }, {
    “type”: “element”,
    “selector”: “div.apester-media”
    }]
    }
    }
    }]
    }

    Please let me know how we can do this in your plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author OzTheGreat

    (@ozthegreat)

    Hi,

    Thanks for getting in touch. could you send me a sample of the content you’re trying to transform? You don’t want it to go through the transformer at all, is that correct?

    All the best

Viewing 1 replies (of 1 total)
  • The topic ‘Custom transformer rules’ is closed to new replies.