Hi, i have added two bbcode for special needs !
1 - Embed HTML: load url into iframe. Possible enhancement : auto fit to content (height)
2 - Custom IMG : Show image in topic with it's real size
XML list:
<YafBBCodeList>
<YafBBCode>
<Name>EMBEDHTML</Name>
<Description>[EMBEDHTML]url[EMBEDHTML]</Description>
<OnClickJS />
<DisplayJS />
<EditJS />
<DisplayCSS />
<SearchRegex>\[embedhtml\](?<inner>.+?)\[/embedhtml\]</SearchRegex>
<ReplaceRegex><iframe id="contents" width="100%" height="800px" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0" src="${inner}"></iframe></ReplaceRegex>
<Variables />
<UseModule>false</UseModule>
<ModuleClass />
<ExecOrder>1</ExecOrder>
</YafBBCode>
<YafBBCode>
<Name>CUSTOMIMG</Name>
<Description>[CUSTOMIMG]url[CUSTOMIMG]</Description>
<OnClickJS />
<DisplayJS />
<EditJS />
<DisplayCSS />
<SearchRegex>\[customimg\](?<inner>.+?)\[/customimg\]</SearchRegex>
<ReplaceRegex><img src="${inner}"/></ReplaceRegex>
<Variables />
<UseModule>false</UseModule>
<ModuleClass />
<ExecOrder>1</ExecOrder>
</YafBBCode>
</YafBBCodeList>
Edited by moderator
8 years ago
|
Reason: added syntax highlighting