when I choose an image with the roxy fileman the image appears in my editor (tinymce 4) and when i check the path of the image its
(/test/fileman/uploads/image.jpg)
that's correct, but when I check $_POST['content'] after the form submit then the image path changes to
../../../fileman/uploads/image.png
how could I changed this path, because this is not correct ... it should be the same as the path before submit.
Related
The image is not shown on my GitHub page for some reason even though I can view it locally.
I have tried multiple ways but can't get it done:(
Try to change the relative path to an absolute path in the src of the image.
I have added a ImagePlugin as described in https://www.tinymce.com/docs/plugins/imagetools/#sdkinstallation.
I can modify a photo in an editor but I don't know how to save it after modifications.
After posting a form with wysiwyg I get :
Cannot convert
blob:http://10.48.200.155/5e32b981-6e33-48cc-87b1-512abd653912 to
Blob. Resource might not exist or is inaccessible.
When you use the image editing tools to modify an image the editor creates a Base64 encoded new image. This exists (right after the editing) only in the browser. To permanently save the image to something other than Base64 you need to follow these instructions:
https://www.tinymce.com/docs/advanced/handle-async-image-uploads/
The net is that the editor can be configured to send the image binary to a script of your choice. That script needs to save the image somewhere appropriate and return JSON with the path to the new image's location.
In my JavaFX Application I generate a barcode with barcode4j by Apache, save it as png image in the directory /data/images/ and embed it in a web page which is shown on a JavaFX WebView.
After generating the barcode I embend it into the webpage using the following Javascript-Code:
path = "file:/" + path.replace(/\\/gi,"/");
var barcodeElement = document.getElementById("productBarcode");
barcodeElement.setAttribute("src", path );
barcodeElement.style.display = "inline-block";
I use the absolute path C:\path\to\java-program\data\myimage.png and build a file-URL from it.
Using this in Eclipse works without any problems. But when I build my project and start it from my jar-file the image is not shown. But the problem is not, that the path is incorrect or that generating the picture does not work, so that there is some kind of "not found" error. The place where the image should be is just white with a light border around.
And now the strangest part: If you right click on the image and choose "open in new window" the image is shown!
Does someone has an idea about that?
Thank you very much in advance!
My understanding is that the WebView won't let a page loaded with one protocol access files using another one. This makes perfect sense when you load through http://, and forbid file://. Here, you're loading through jar:file:..., and the webview will only let you access jar:file:... resources (I just tried, I can access an image from another jar file, from the same jar file, but not from outside!).
This sounds very much like a bug to me.
One workaround mentioned here is to use "data:" URI (i.e. encode the image directly in the HTML file).
i know how to display images in view page on static,
but i am really confused about, display image in view page by image path from database..
the image path is saved in the database using the input type=file is uses and the image name and path save to database.. and how to display that in the view page when call the image path
i don'nt know how to do this..
any one know the answer please share here..
with reguards... prasanth..
Assuming your image is saved in public/images/ and the path saved in your database is images/image.jpg, you can simply pass the path to your view and use the router to resolve the image:
#(path : String)
<img src="#routes.Assets.at(path)" />
In the end this will give you the following HTML:
<img src="/assets/images/image.jpg" />
(you can verify this by looking at the source code of the generated HTML page, ctrl - u in Firefox)
The assets folder is where Play puts all the images from the public/images directory.
This is question about tinymce... Current image editor is slow for because it demands opening popup for every new picture I want to add. I have my own external image gallery where each image contains it's url so copy-paste of url's is very easy and fast...
I would like to have button similar to Bold that does following:
To editor I paste url of image (for example: www.site.com/image.jpg) and when i select this url and click on my new button it converts image url to <img src='www.site.com/image.jpg'> and shows image in editor.
I searched plugins and found nothing similar to this.
Any ideas?
Thanks in advance!
Ilija
solved!
In documentation there is example how to manipulate text in editor from external commands... end even set them as button