Welcome Guest, Not a member yet? Register   Sign In
FCKEditor not retrieving right Post data...
#1

[eluser]Rubiz'[/eluser]
Hi all...

My problem is about PHP and FCKEditor...

I can't post the user writen text, it always returns me the initial text that is something like "Type your text here"...

How can I update FCK before posting text??

I'm searching for it more than half hour, without answer :-(, and I rode the manual, it looks it should work properly only submiting data... it should go with the $_POST var updated...

Anyone could help me?
#2

[eluser]Rubiz'[/eluser]
I made a simple test here in my computer and it goes very fine, I really dont know whats happening...
It could be something with CI instalation?

Please, I have to end thi joooob aaaaaaaahhhh!!!!
#3

[eluser]Rubiz'[/eluser]
no one to help me? Sad
#4

[eluser]ecsyle31[/eluser]
You need to post more information. Post code examples, web server specs, operating system, etc.
#5

[eluser]Rubiz'[/eluser]
Well I tryied use FCKEditor with CI as I found in Wiki, but it doesnt works...

I have in my view page, first line:
Code:
include( "./fckeditor/fckeditor.php") ;
Than where the editor goes:
Code:
<?php
                    $sBasePath = base_url() . 'fckeditor/' ;
                    
                    $oFCKeditor = new FCKeditor('rte1') ;
                    $oFCKeditor->BasePath = $sBasePath ;
                    
                    $oFCKeditor->Value = '' ;
                    $oFCKeditor->Width = '100%';
                    $oFCKeditor->Height = '400';
                    $oFCKeditor->Create() ;
                    ?>
In root folder I have the FCKeditor instalation folder, and in controller that receives post data... $_POST['rte1'];

...

I saw, testing, that if editor is COMPLETELY empty, with NO TEXT, without refreshing page, ZERO things... it posts...

But if I have to update or set a default text... it fails, it returns me only the already set text...

Sad and its only that is missing to end all the job... 3 months job Sad
#6

[eluser]Colin Williams[/eluser]
Not sure why you need a PHP plugin for FCK? I would try just following the docs on the FCK site. All it does is turn a textarea into and iframe that it manipulates, then puts the contents of the iframe back into the textarea onSubmit. So, you're right, it should be in your $_POST array. The lib you got must be whack.
#7

[eluser]Rubiz'[/eluser]
It could be some wrong internal path?
It seams the function that updates things is not working properly, it could be because of that...




Theme © iAndrew 2016 - Forum software by © MyBB