1

i m writing a wysiwyg editor, and all the client side works perfectly, i am also able to echo the data correctly on server side, but after saving the post object, either all or most of it goes missing.

playing with strip_tags, mysql_real_...etc gives different results but never the exact html i had.

here s how i save the post object

foreach( Input::all() as $key=>$value ){
        $key != '_token' ? $post->$key = ($value) : 0;
        }

how do i solve this problem?

p.s. i have mysql db, of course

1 Answer 1

4

all works! problem was DB related - after changing field type from varchar(255) to varchar(10000) or text(which is actually the right one for such data) everything works as planned.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.