1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JS : Parse custom BBCode in redactor (like for b, i, u, s, colors, etc...)

Discussion in 'XenForo Development Discussions' started by allewreK, Aug 28, 2013.

  1. allewreK

    allewreK Active Member

    Hello XenForo,

    I made a custom BBCode, named [title].

    I would like that, when I use it in redactor, it's getting parsed to the html I want.

    As an example, in redactor, you can "live" parse the BBCodes : Bold, Italic, underline, striked, colors, position, etc, but you can't parse code, quotes, etc...

    Any ideas ?

    Best regards :)
  2. russoroni

    russoroni Active Member

    Hey did you ever get anywhere with this? I'm not exactly sure but I think this is similar to what I'm trying to do. I need a bbcode that can display javascript in the post. This in particular:

    <script type="text/javascript" src="http://maps.google.com/maps?oe=utf-8&amp;file=api&amp;v=2&amp;key=your-gmap-key"></script>
    <script type="text/javascript" src="http://static.findmespot.com/live-widget/1.2/js/SpotMain.js"></script>
    <script type="text/javascript">
    var widget = new Spot.Ui.LiveWidget({ renderTo: "spot-live-widget",
    feeds: [ "0Wl3diTJcqqvncI6NNsoqJV5ygrFtQfBB" ],
    height: 400,
    width: 500,
    mapType: "physical"
    <div id="spot-live-widget"/>

Share This Page