laravel-editor icon indicating copy to clipboard operation
laravel-editor copied to clipboard

Repopulate unsuccessful form

Open almamund opened this issue 9 years ago • 1 comments

Hello guys, I've implemented this editor on a blog and liked it. Everything seems to be smooth, except one problem. When a user submits an NEW incomplete post, generally its validated and redirected back with all the submitted data. How to repopulate the editor area? Editor::view() is empty

Regards

almamund avatar May 14 '15 13:05 almamund

@almamundinajpuri you should be able to call Editor::view($content) passing the raw content that is usually passed from the editor as input, which will then have it populated inside the editor when rendered.

Mulkave avatar May 29 '15 10:05 Mulkave