Custom transformer rules
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Custom transformer rules’ is closed to new replies.