What is the reason for Rich file manager to include filemanager.config.json instead of simply adding an image to the text

I have integrated Rich File Manager with Laravel 5.3.20 using the default configuration provided below:

Javascript

 <script>
        CKEDITOR.replace( 'textarea', {
            filebrowserBrowseUrl: '{!! url('gallery/index.html') !!}',
            ///ImageBrowser : true,
            autoUpdateElement:true,
            language:'en'
        });
    </script>

The URL for images in the textarea is incorrect.

<p><img alt="" src="http://website.dev/gallery/connectors/php/filemanager.php?mode=readfile&amp;path=%2Fae.jpg&amp;config=filemanager.config.json&amp;time=1477642950519" style="height:960px; width:720px" /></p>

All files, folders, and subfolders have been updated to userfiles. However, the image URL that needs to be inserted into the Database within the textarea is showing an incorrect URL as mentioned above.

FileManager Configuration

... (remaining code excluded for brevity) ...

Answer №1

Your current version does not allow for absolute paths in preview links, as it generates preview URLs based solely on the connector request path. This decision was made to accommodate users who keep their connector files separate from their client-side scripts (sometimes on different servers). After discussions, it was determined that both options will be supported: absolute paths (by default) and connector paths (configurable). The functionality you are looking for will be part of the upcoming major release 2.0. More information about your issue can be found here.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Exploring the methods for monitoring multiple UDP ports on a single address in Node.js within a single process

I am currently working on developing a Node.js application to manage a small drone. The SDK provides the following instructions: To establish a connection between the Tello and a PC, Mac, or mobile device, use Wi-Fi. Sending Commands & Receiving Responses ...

The router should display a component based on the user's access level, even if they are

I'm working on a scenario where the home route needs to cater to both admin and user roles. Is there a way to dynamically display the UserComponent if logged in as a user, and show the AdminComponent if logged in as an admin? This is my current setup ...

Tips for integrating @mdx-js/loader with your create-react-app project

Following the guidelines found at: The steps I took were: $ npx create-react-app react-app $ cd react-app $ npm install @mdx-js/loader Then, according to the instructions, I created the src/content.mdx file like this: # Hello, world! This is **markdown* ...

Altering the character by striking a key

I have a canvas with custom styling. In the center of the canvas is a single letter. Please see the code below for reference. The goal is to change the displayed letter by pressing a key on the keyboard. For instance: Letter A is centered in the canvas: P ...

What is the process for setting up basic http authorization using angular.js?

My backend setup follows a structure similar to what is explained in this article. I am looking to make a GET request using angular.js, just like curl does it, with authorization via HTTP headers: $ curl -u miguel:python -i -X GET http://127.0.0.1:5000/a ...

Leveraging react router within next.js

I am currently delving into the realm of Next.js/React for my project and seeking to understand the intricacies of routing. One question that has cropped up during my research is whether I need to incorporate react-router with Next.js, given my previous ex ...

Generating a JSON array of strings from a single column in a database

I have looked into various JSON rendering issues here, but none of them seem to address the specific need for an array. While there are many posts about rendering as a hash, they have not been very helpful. Some recent attempts include: def create para ...

Error: Unable to extract 'blog' property from 'param' because it is not defined in the Strapi NextJS context

I'm currently developing a blog using NextJS and Strapi. While implementing the comment functionality for my blog posts, I encountered two strange errors: TypeError: Cannot destructure property 'blog' of 'param' as it is undefined. ...

The issue of Vue.js template errors within inline code

I am experimenting with using inline-template in combination with vue.js 2.0. This usage is within the context of Laravel blade 5.4: <users inline-template> <tbody> @foreach($users as $user) <tr> ...

Error encountered: Unexpected syntax error found in jQuery ajax call

I am attempting to send a simple request to Instagram using the code snippet below: $.getJSON("https://www.instagram.com/kidsfromthe90sband/media/?callback=?", function(data) { alert(JSON.stringify(data)); }); http://jsfiddle.net/FPhcr/731/ ...

Is it necessary for NPM to execute scripts labeled as dependencies during the npm i command execution?

When npm i is run, should it execute the scripts named dependencies? I've observed this behavior in the latest version of Node (v19.8.1) and I'm curious if it's a bug. To replicate this, follow these steps: mkdir test cd test npm init -y T ...

Encountering a problem with displaying error messages in an empty text field

I am facing an issue with displaying error messages when a text field is left blank. I would like a simple message, such as "can't be empty", to appear below the text field in red color when the user clicks the submit button and leaves multiple fields ...

Develop an exclusive "click-once" button for a webpage

Can anyone assist me in creating a "one-time clickable" button to launch my website? I've searched through numerous threads on Stack Overflow but haven't found a solution yet. ...

Adjust the size of an image post-render with the help of Angular or jQuery

Below is my current HTML code: <img width="150" height="150" src="https://d.pcd/image/578434201?hei=75&amp;wid=75&amp;qlt=50,0&amp;op_sharpen=1&amp;op_usm=0.9,0.5,0,0" ng-src="https://d.pcd/image/578434201?hei=75&amp;wid=75&amp; ...

How can I effectively utilize a GET request in jQuery/AJAX to define parameters?

Hey everyone, I'm new to working with Jquery/Ajax and currently facing a challenge. I need the source URL for the JSON to change based on certain URL parameters I've set up. I have a PHP version of the code that works perfectly fine, but I'm ...

Encountered a Socket.io issue: CONNECTION_TIMED_OUT_ERROR

I'm in the process of developing a simple HTML chat program. I've set up a node server for testing, but encountering a socket error when trying to access the HTML page. This is my first experience with Node.js and setting up a server, so it' ...

You can transmit information containing special characters through a POST request in R by utilizing the httr package

When utilizing the httr package to send a POST request with encoded JSON data, I am encountering an issue where the special characters are not being properly decoded in the received data. The code snippet below demonstrates how I am sending the POST reques ...

Utilizing HTML to call a function and fetching data from AngularJS

I've been struggling to retrieve the value after calling a function in my HTML file. Despite trying various methods after conducting research, I have not achieved success yet. Take a look at the code below: HTML: <div class="form-group"> & ...

Triggering a keyboard *ENTER* event on an Input in Javascript/React by clicking a button is a common query among developers

I am facing a challenge with an Input element that only displays results when I press Enter on the keyboard. The element is part of a third-party extension, so my control over it is limited. My goal is to trigger the ENTER event for the Input when a button ...

The functionality of the like button in Flask with jQuery/JSON seems to be malfunctioning

I am currently in the process of developing a small flask application and attempting to create a like button that can function without requiring a page refresh. After considering jQuery as a potential solution, I began writing some code. However, it appea ...