[SOLVED] TinyMCE and Form set_value problem |
[eluser]Ben Edmunds[/eluser]
flaky, dude read the post, this is happening before anything ever touches the database. It's in the form validation. John, Looks like you might have to do it with JS like so: Code: var tiny = tinyMCE.get('editor1'); You can reference this post for more info: http://tinymce.moxiecode.com/punbb/viewt...p?id=10090 Good luck!
[eluser]jjmax[/eluser]
Ben, You're a legend! This sounds like a good solution. Thanks for that and the link. I'm at home now, but will do the fix in the morning. I'll let you know how it goes. All the best, John
[eluser]jjmax[/eluser]
Hey guys, I tried your idea Ben but wasn't sure about getting it to work, so started trying to attack this problem form a different angle. Instead of using the CI form helper to create the textarea, I did this - Code: echo form_label('Body', 'content'); This works! ![]() Not sure how it is from a coding best practice point of view but it is getting the job done. Thanks again for everyone's help. Hopefully this can help someone else.
[eluser]Ben Edmunds[/eluser]
Good job man! If you're doing this in the view you can shorten your syntax a little like this if you want: Code: <?php echo form_label('Body', 'content');?> Either should work fine though.
|
Welcome Guest, Not a member yet? Register Sign In |