Not Solved [How To?] Remove "enter" = <br />
#1
Not Solved
Wondering how I would go about removing the "enter" button as a new line code.

As of right now I am not a fan of using the enter button to space down or
<br />

How do I remove this function? HTML is enabled on my board and users will be using it only (yes I know the risks of HTML/CSS/scripts in posts).

About the only thing I can guess needs edited in the inc/class_parser.php is:
$find = array("<br />\n", "<br>\n");
 $replace = array("\n", "\n");
$message = str_replace($find, $replace, $message);
However I don't want to touch what shouldn't be touched.

http://creature-rpg.isoldehn.com
> SELECT finger FROM hand WHERE id='3'
Reply
#2
Not Solved
would you like to try using css trick to remove newlines in post content ..
may be something like .post_content br {display: none;}
Reply
#3
Not Solved
No as I would like users to use HTML <br /> for line breaks, I just don’t want enter to automatically make one.
> SELECT finger FROM hand WHERE id='3'
Reply
#4
Not Solved
^ in that case, a plugin would be required or you can try a jQuery based solution
Reply
#5
Not Solved
Thanks for the information! I’ll look into the jQuery solution but I seem to always have bad luck with it as in-line moderation stops work 75% of the time I use any.

As far as plugin do you mean editor plugins?
> SELECT finger FROM hand WHERE id='3'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)