Giter Club home page Giter Club logo

Comments (6)

brianteeman avatar brianteeman commented on May 30, 2024 1

#42448 was about adding images etc to the mail TEMPLATE so that you can do some branding
What you are talking about here is adding an image to the private message. Different thing

from joomla-cms.

Razzo1987 avatar Razzo1987 commented on May 30, 2024

Ok, is different bug :(

from joomla-cms.

Kubik-Rubik avatar Kubik-Rubik commented on May 30, 2024

This is not a bug of the Messaging component but a feature provided by the TinyMCE editor to convert absolute URLs to relative URLs.

To "fix" this issue, go to "System" - "Plugins" - "Editor TinyMCE" and set the option URLs to Absolute:

grafik

from joomla-cms.

brianteeman avatar brianteeman commented on May 30, 2024

Sorry but that is not correct for this. Making that change will change it everywhere not just in private messages.

from joomla-cms.

Kubik-Rubik avatar Kubik-Rubik commented on May 30, 2024

Yes, you are right. I explained the reason for this behaviour.

We need to apply the same logic for such relative URLs as we do in the SEF plugin (add the base path if required - \Joomla\Plugin\System\Sef\Extension\Sef::onAfterRender).

from joomla-cms.

brianteeman avatar brianteeman commented on May 30, 2024

The correct way to address this is in the messaging component where the editor is rendered. Too late for me to write tested and working code but it would be something like

$params = ['relative_urls' => 'true']
$content = $editor->display($name, $content , $width, $height, $col, $row, true, $id, null, null, $params);

from joomla-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.