I got TEXTAREA replacement in my php page, but thre is just text area, without ToolbarSet. Where should I specify ToolbarSet? Your examples aren't very specific in this regard... (in _documentation/Using FCKeditor/Javascript.html) Should I add oFCKeditor.ToolbarSet = "Office2003"; or something else and where - in <head> area or down where <textarea> code is located? I'm confused...
This is what I added in the <head> area: <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script> <script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor( 'MyTextarea', 920, 300, true, false ) ; oFCKeditor.ToolbarSet = "Office2003"; oFCKeditor.ReplaceTextarea() ; } </script>
After you have downloaded FCKeditor, extract it to a directory under your publicly visible web root. The PHP class and function calls put the necessary Javascript code into the HTML and in order to work these must be in a web visible place.
At its simplest, this is all you need to do to get a working FCKeditor with PHP:
require_once('actual/path/to/fckeditor/fckeditor.php');
$FCKeditor = new FCKeditor('myfieldname');
$FCKeditor->BasePath = '/web/path/to/fckeditor/';
$FCKeditor->Value = $myvalue;
$FCKeditor->Create();
The path in the require_once (you can also use include(), include_once() or require()) is the actual path on the server to the fckeditor.php script and can be absolute or relative.
The value passed when the class is created is the name you want the field to have and is what will appear in the $_POST array when the form is submitted.
The BasePath value is the path to the fckeditor files from a web browser.
The Value variable is the initial value you want to appear in the HTML editor and will likely come from a database.
Calling Create() then outputs the necessary HTML code to add the editor to your web browser.
RE: Using FCKeditor with php
I found my answer in _documentation/Using%20FCKeditor/Javascript.html
RE: Using FCKeditor with php
(in _documentation/Using FCKeditor/Javascript.html)
Should I add oFCKeditor.ToolbarSet = "Office2003"; or something else and where - in <head> area or down where <textarea> code is located?
I'm confused...
RE: Using FCKeditor with php
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea', 920, 300, true, false ) ;
oFCKeditor.ToolbarSet = "Office2003";
oFCKeditor.ReplaceTextarea() ;
}
</script>
And this goes into <body> area:
Somehow doesn't work...
RE: Using FCKeditor with php
It would be easier for me to include the FCKeditor with a php-code, like in the version 1.6.
Is that possible?
Cosmo
RE: Using FCKeditor with php
Anyone wondering about this can look at this thread ..
https://sourceforge.net/forum/forum.php ... _id=379487
explains how to use both the Office 2003 Skin and how to use ReplaceTextarea ....
Re: Using FCKeditor with php
<?php
include("fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '/fckeditor/';
$oFCKeditor->Value = 'Default text in editor';
$oFCKeditor->Create() ;
?>
I got the error message like "The requested URL/fckeditor/editor/fckeditor.html was not found on this server."
pls help me with this.
Creating a Page view appearance inside the text area
Hi,
I would like to use the testarea as a page in a4 size where when it reach the bottom of the page it has to go to next page .Please anyone help me
thanks in advance.
all you need to do is set the
all you need to do is set the dimentions that you want your text editor to be
I am also don't know about CK editor in php
I am also don't know about CK editor in php
thats great insite bout the
thats great insite bout the this edittor, is a great text editor for developers
After you have downloaded
After you have downloaded FCKeditor, extract it to a directory under your publicly visible web root. The PHP class and function calls put the necessary Javascript code into the HTML and in order to work these must be in a web visible place.
At its simplest, this is all you need to do to get a working FCKeditor with PHP:
require_once('actual/path/to/fckeditor/fckeditor.php');
$FCKeditor = new FCKeditor('myfieldname');
$FCKeditor->BasePath = '/web/path/to/fckeditor/';
$FCKeditor->Value = $myvalue;
$FCKeditor->Create();
The path in the require_once (you can also use include(), include_once() or require()) is the actual path on the server to the fckeditor.php script and can be absolute or relative.
The value passed when the class is created is the name you want the field to have and is what will appear in the $_POST array when the form is submitted.
The BasePath value is the path to the fckeditor files from a web browser.
The Value variable is the initial value you want to appear in the HTML editor and will likely come from a database.
Calling Create() then outputs the necessary HTML code to add the editor to your web browser.
thanks!!!
thanks!!!