The forum operates in read-only mode. Please head to StackOverflow for support.
oFCKeditor1.Value = '<?php echo $_POST['someVarHere']; ?>' ;
oFCKeditor1.Value = '<?= $yourVar ?>' ;
oFCKeditor1.Value = '<?=$_POST['textarea_name']?>';
<?=$_POST['textarea_name']?>
RE: How to join this app with PHP
RE: How to join this app with PHP
RE: How to join this app with PHP
<script type="text/javascript">
<!--
var sBasePath = 'fckeditor/' ;
var oFCKeditor1 = new FCKeditor( 'someVarHere' ) ;
oFCKeditor1.BasePath = sBasePath ;
oFCKeditor1.ToolbarSet = 'Basic' ;
oFCKeditor1.Value = '<?php echo $_POST['someVarHere']; ?>' ;
oFCKeditor1.Create() ;
//-->
</script>
RE: How to join this app with PHP
RE: How to join this app with PHP
I want to use fkeditor with php but I cant find some help how to do this.
With:
<script type="text/javascript">
<!--
var sBasePath = 'fckeditor/' ;
var oFCKeditor1 = new FCKeditor( 'someVarHere' ) ;
oFCKeditor1.BasePath = sBasePath ;
oFCKeditor1.ToolbarSet = 'Basic' ;
oFCKeditor1.Value = '<?php echo $_POST['someVarHere']; ?>' ;
oFCKeditor1.Create() ;
//-->
</script>
Nothing happens, only the blank textareas without fkeditor.
RE: How to join this app with PHP
This line should work :
oFCKeditor1.Value = '<?= $yourVar ?>' ;
Otherwise, try to explain your problem better ...
RE: How to join this app with PHP
Did you read the manual include in the _documentation directory of the distribution ?
Did you include the javascript file as explained to load FCK libraries ?
RE: How to join this app with PHP
Im using no the inofficial php connector and it works fine.
RE: How to join this app with PHP
RE: How to join this app with PHP
it worked fine for me.
this is what i did:
filename: test.php:
<form action="" method="post">
<script type="text/javascript">
<!--
var oFCKeditor1 = new FCKeditor('textarea_name');
oFCKeditor1.BasePath = 'fckeditor/';
oFCKeditor1.Value = '<?=$_POST['textarea_name']?>';
oFCKeditor1.Height = '500';
oFCKeditor1.Width = '500';
oFCKeditor1.Create();
//-->
</script>
<br>
<input type="submit" value="Submit">
</form>
This was submitted:
in <head> tag:
<script type="text/javascript" src="editor/fckeditor.js"></script>
copied the editor stuff into dir "editor". this src must point to fckeditor.js file.
RE: How to join this app with PHP
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>