Jump to content

SchmidtchenSchleicher

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by SchmidtchenSchleicher

  1. Ok, I found the solution thanks to Ryan's post. The line 271 in "InputfieldCKEditor.module" $value = str_replace(array('<div>', '</div>'), array('<p>', '</p>'), $value); is "no good" Think of HTML code like this: <div class="red">TEST</div> The end tag gets replaced, the start tag does not... After I commented out the line the module works like expected
  2. Hi, there seems to be a problem with the module. I'm using version 1.1.8. The value that is finally sent to the server by the POST request when "Save" is clicked (captured with LiveHTTPHeaders) looks like this: ... Content-Type: multipart/form-data; boundary=---------------------------28096310386738 Content-Length: 3032 -----------------------------28096310386738 ... -----------------------------28096310386738 Content-Disposition: form-data; name="body_repeater1056" <div class="grid2column"><img alt="" src="/site/templates/images/demo/sample-image1.jpg" /></div> <div class="grid2column lastcolumn"> <h3>Überschrift</h3> <p>Text</p> </div> -----------------------------28096310386738 ... The CKEditor module is configured for a field named "body" with the following settings: Tab "Details": content type = Unknown. I have tried "Markup/HTML" also, no success. Tab "Input": Editor Mode = "Regular Editor" / Use ACF? = "No" / Use HTML Purifier? = "No". All I want is that the transferred HTML code does not get verified or modified in any way by the server. Take the data, store the data, thanks. No need to do anything else with it. The value that you can see in the POST's form-data above is exactly the HTML Code that I want to save to the DB, but the stored result must have been modified somewhere during the saving process, because "$repeater_element->body" gets this: <div class="grid2column"><img alt="" src="/site/templates/images/demo/sample-image1.jpg" /></p> <div class="grid2column lastcolumn"> <h3>Überschrift</h3> <p>Text</p> </p> The <div> - Tag should of course be closed by a "</div>", but it's closed with "</p>" instead. Is there a solution for this? Thank you!
  3. Hi Radek, thank you for the quick reply! You were right - a "Repeater" with "File" field inside was not necessary because a field of type "File" offers multiple file uploads out of the box. I did not know that... By setting "Maximum files allowed" to 0, I achieved exactly what I thought was only possible by using a "File" field inside a "Repeater" field. Very nice solution - another reason for liking ProcessWire Thanks again Andreas
  4. Hi, I am new to ProcessWire. After about a week of working with it, I really like it! Now I need support for the first time... I cannot create a link to a PDF file in CKEditor module. User "Marco" described exactly the same problem I actual have, and later he added to his post http://processwire.com/talk/topic/3023-module-ckeditor/page-5#entry43492 that he has solved the problem. I did not. As you can see in attached file there is a file called "test.pdf" available in my page. This file resides in a field labeled "Datei" (type = "File") which is part of a "Repeater" field labeled "Dokumente". As "PDF" is listed as valid file extension, the file upload worked fine. In the page's template, there is a "Repeater" field labeled "Inhaltselement", which contains a field "Body". "Body" is of type "Textarea", its input type is "CKEditor". After highlighting some text and clicking "Insert Link" (see ), a new window "Insert Link" appears. There it is possible to "Link to a file". When I open the Select Dropdown, only "images - team.jpg" is selectable (see ). "team.jpg" is an image that is available on the page, too. But I miss "test.pdf"... Is it possible to link to a file that is no image, and if so - how do I do that? Am I missing some configuration options? Thank you! Andreas
×
×
  • Create New...