• Resolved cm77au

    (@cm77au)


    Hi,

    If I add HTML (e.g. Insert HTML) to a column in wpDataTables using TinyMCE the link/URL is always converted to a relative URL such as ../path/

    Is there anyway to make wpDataTables/TinyMCE use absolute URLs?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi cm77au,

    Thank you for your interest in wpdatatables.

    We are not sure how to reproduce the same behavior as you are.

    If you create a simple table(first option in the table wizard) and you need to insert links in your cells you have more options:
    First, you can insert manually HTML for example:

    <a href="yourURL">Your text</a>

    The second option is to insert over link button above the table in the toolbar
    https://ibb.co/MMdnHsQ

    The third option is to insert it over the button Insert HTML above the table in the toolbar. https://ibb.co/BCcVjCW

    In the first option, you will insert how you want it.

    In the second option, you will need to insert the absolute path so you will get a link that you need.

    And in the third option, you are able to insert absolute and relative paths, but if you insert relative for example /yourfile.json it will be formatted so your domain will be added. The result will be http or https plus your domain plus the relative path, so at the end for example https://yourdomain.com/yourfile.json

    As you can see in the second and third options it will be rendered absolute path of your URL so we are not sure how to reproduce the same behavior.

    Can you please explain to me in a little more detail, send some screenshots or videos so we can see how to reproduce the same behavior in our local environment?

    Thank you

    Best regards.

    • This reply was modified 4 years, 1 month ago by wpDataTables.
    Thread Starter cm77au

    (@cm77au)

    Thanks for you help. If I double click the mouse on a column, then choose Insert HTML, a HTML Editor popup window is shown and at the bottom of the Editor it displays ‘POWERED BY TINY’.

    If I enter some text in the HTML editor, then click Insert/Edit link, an Insert Link popup is displayed. Once I enter the Url value, if you click OK, then click the Source Code icon, you can see that the Url value is always converted to a relative URL (../news/ instead of https://websiteurl.com/news/).

    This does not happen when I am using the regular HTML editor, only when adding HTML to a wpDataTables table/column.

    Please let me know if you can reproduce the problem otherwise I can send screenshots/video.

    Plugin Author wpDataTables

    (@wpdatatables)

    Hi cm77au,

    Yes please take a screencast/video of that issue and then upload it on some free servers and share with us that video link, so we can see it and try to reproduce it in our environment.

    Thank you.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML TinyMCE Problem’ is closed to new replies.