I've created a small cms to edit articles on my site. I have an option to select a checkbox next to each article and then press the edit button so I can edit multiple articles at once. Each content textarea field is replaced by FCKeditor.
So in PHP I have a while loop which returns each row of data (each article), and places it into a fieldset of which the content field is FCKeditor.
This is, however, returning the same value in the iframe of FCKeditor for every article, even though the display:none input field has the correct values (which are different).
The html that is being poduced:
Article one - value of FCKeditor field = 'Content for the first article here' - Actual value = 'Content for the first article here':
Article two - value of FCKeditor field = 'Content for the first article here' - Actual value = 'Different content here for the second article which isn't appearing in FCKeditor field':
Has anyone got any ideas?
Thanks thanks.
So in PHP I have a while loop which returns each row of data (each article), and places it into a fieldset of which the content field is FCKeditor.
This is, however, returning the same value in the iframe of FCKeditor for every article, even though the display:none input field has the correct values (which are different).
$blog_content = $row['blog_content']; $oFCKeditor = new FCKeditor('blog_content[]') ; $oFCKeditor->BasePath = '../../add_ons/fckeditor/' ; $oFCKeditor->ToolbarSet = 'Basic'; $oFCKeditor->Value = $blog_content ; $oFCKeditor->Create() ;
The html that is being poduced:
Article one - value of FCKeditor field = 'Content for the first article here' - Actual value = 'Content for the first article here':
<input type="hidden" id="blog_content[]" name="blog_content[]" value="Content for the first article here" style="display:none" /><input type="hidden" id="blog_content[]___Config" value="" style="display:none" /><iframe id="blog_content[]___Frame" src="../../add_ons/fckeditor/editor/fckeditor.html?InstanceName=blog_content[]&Toolbar=Basic" width="100%" height="200" frameborder="0" scrolling="no"></iframe>
Article two - value of FCKeditor field = 'Content for the first article here' - Actual value = 'Different content here for the second article which isn't appearing in FCKeditor field':
<input type="hidden" id="blog_content[]" name="blog_content[]" value="Different content here for the second article which isn't appearing in FCKeditor field" style="display:none" /><input type="hidden" id="blog_content[]___Config" value="" style="display:none" /><iframe id="blog_content[]___Frame" src="../../add_ons/fckeditor/editor/fckeditor.html?InstanceName=blog_content[]&Toolbar=Basic" width="100%" height="200" frameborder="0" scrolling="no"></iframe>
Has anyone got any ideas?
Thanks thanks.
Re: Editor loop problem
Re: Editor loop problem
Re: Editor loop problem