_Roy_ Posted 30 minutes ago Posted 30 minutes ago I am starting on a new project, and I installed Processwire yesterday on my dev-environment. I am running 3.0.260. I have a page with a field with the type "Textarea/TinyMCE", and also a field with the type "Image". I have uploaded 2 images to this image-field, which works as expected. But when I click the add image-button in the textfield, and select the image I want and click "Insert Image", it returns to the page with the TinyMCE-field, but the image is not being inserted. Also when I view the code of that field, it does not show that it inserted anything. I do not get any error-message or anything. Am I missing a setting or something?
Krlos Posted 27 minutes ago Posted 27 minutes ago Hi @_Roy_, Have you tried saving the page first, then inserting the image? ProcessWire may need the page and its images to be saved before TinyMCE can insert them properly.
_Roy_ Posted 25 minutes ago Author Posted 25 minutes ago Hi @Krlos, yes, I have saved the page with the images and then returned to the TinyMCE-field. I have now got it to insert something in the source code of the page: "<img alt="" width="97">". When I save the page however, this is removed as it is obviously not working without a "src"-attribute in there.
Krlos Posted 19 minutes ago Posted 19 minutes ago (edited) @_Roy_, Check this thread: https://processwire.com/talk/topic/29994-resolved-inserting-an-image-in-cke-wysiwyg-does-not-populate-src-attribute Edited 16 minutes ago by Krlos Typo
_Roy_ Posted 5 minutes ago Author Posted 5 minutes ago (edited) @Krlos The video there is the exact same issue I have. I have now added the 2 lines to my config.php and the function to ready.php. I have deleted the images from the page and recreated them, but that does not help. I did not check my logs before, but now I see an error in the exceptions-log. The message is: This request was aborted because it appears to be forged. (C:\laragon\www\whisky\wire\core\SessionCSRF.php:194) Edited 4 minutes ago by _Roy_
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now