Skip to content
  • 0 Votes
    1 Posts
    347 Views
    ufan0U
    As mentioned in the title, I want to add some javascripts and html to my post. For example, I want to show data by calling api in a specific post. I tried the plugin -> markdown ->Allow HTML, it does not work.It seems will ban the javascript. So is there any good way to meet my needs? Thanks s lot. [image: 1622046490458-006hl0sxgy1g9xjkxn77rj30j60j6who.jpg]
  • 6 Votes
    3 Posts
    1k Views
    manolinoM
    @kadmy , sure: upload the file controls.png from the plugin folder \node_modules\bxslider\dist into NodeBB assets. The file looks like the bitmap below. [image: 1611963514006-controls.png] Then change the LESS to .my-wrapper { box-shadow: none; border: none; .bx-prev { background: url(/assets/uploads/controls.png) no-repeat 0px -32px; } .bx-next { background: url(/assets/uploads/controls.png) no-repeat -43px -32px; } } This file contains the standard bxSlider. But you can use any other icon. Just upload it or point to the url of your preference. Please update to v0.1.2 for more fixes.
  • Accessing HTML.

    Technical Support
    1
    0 Votes
    1 Posts
    327 Views
    MarcinM
    How can I access HTML by using the terminal? I need to change the name of one element which is in HTML.
  • 0 Votes
    2 Posts
    2k Views
    yariplusY
    in the client, those values are stored in ajaxify.data For your jQuery, you don't append a closing tag, it does that automatically. When you want to insert the element into the div, you need to use appendTo(). Also, unless your label has additional data, I recommend using html() instead of text(). Here's a fiddle. I also added an ID to the new label so it isn't added more than once. https://jsfiddle.net/bdLgsj7p/
  • W3C validation

    NodeBB Development
    3
    1 Votes
    3 Posts
    2k Views
    H
    @psychobunny data-component is a fix for ~20 of the errors and there's a few more "single" fixes that address > 1 error so validating won't be as hard as it looks. But I was trying to rally some more eyes to look through the errors because there's some I'm stumped on how to fix best.
  • Notifications with HTML

    Unsolved Plugin Development
    3
    0 Votes
    3 Posts
    2k Views
    N
    @psychobunny https://github.com/NodeBB/NodeBB/issues/3647