09-12-2010, 01:28 AM
|
#1 (permalink)
|
|
The Visitor
Join Date: Sep 2010
Posts: 3
Thanks: 1
|
Flatfile-edit in place CMS
Hey everyone, I'm finishing up a free project and there's probably one line of coding bugging me.
The cms can be viewed right here (working demo). Password is admin.
What I'm trying to do is hide the <br> in the textarea field. Not disable it, but only make it invisible for the user editing the content. (You can view the <br>'s by logging into the admin panel and clicking anywhere on the content).
So far I've tried
PHP Code:
$content=nl2br($content);
and
$content = str_replace("<br>", "\n", $content);
and
<?php echo "<pre>"; echo $file1; echo "</pre>"; ?>
All without success.
Anyone has any ideas left?
I'm using these libraries if it helps anyone:
- http://ajax.googleapis.com/ajax/libs.../jquery.min.js
- http://krneky.com/wondercms/js/editInplace.js
- http://krneky.com/wondercms/js/wkrte.js
- http://krneky.com/wondercms/js/jquery-1.3.2.min.js
Last edited by r0b : 09-12-2010 at 01:59 AM.
|
|
|
|