Recently Browsing 0 members
- No registered users viewing this page.
By Shohan Arafat
I was looking for code sample where I can attach a textarea for setting up a content in my page. And I wanted to do it programatically. But I can't find a way to do that. Is it possible to add a content textarea with program?
Hi all and thanks for the great work on PW!
One thing I find I have to do on any new site is add the Justify plugin to textarea fields as it is such a widely required feature for text headings in content.
ANy chance this could be added to the core an automatically be installed on new textarea fields using CKEditor?
So, I am not even sure if this is possible, but I thought I would ask anyway. I was building a "system" that would make some modals (izimodal) using a few fields. A user would select the color combo they want, enter a title, fill out the body, and then I was going to pass this (in the template) to fill in the modal. I have this all working pretty flawlessly.
Or, is this something that I should just output in the frontend view for users.
I am using sanitizer->textarea to sanitize and format the message inputted. I've tried various options including newlineReplacement but have been unable to convert newlines to <br> tags. Although the PHP nl2br function works as expected. Any suggestions?
I'm trying to write a value to a textarea via de API. I'm making use of the Multivalue Textformatter module which works great for when the field has multiple rows added via admin.
But now I'm trying to add multiple lines to the textarea via the API and I cannot for the life of me figure, or find out how to do this.
" " to the end of of each new line. When I apply this value to a textarea in the template, this works fine, but when I
$line = "this is a line"; $p->textarea = $line." " I just get "this is a line ". This is the case with the "/n" and "<br>" as well.
Turning on tinyMC doesn't help either as the output in the template is still the same. Turning on the HTML Encoder doesn't help either.