The following code will be called in html & lt; scriptsrcfckeditorfckeditorjs & gt; & lt; script & gt; & lt; scripttypetext webpage effect & gt; functionshowfck () {varofckeditorn
The following code is to be called in html.
-
-
- Function showfck (){
- Var ofckeditor = new fckeditor ('content ');
- Ofckeditor. basepath = 'fckeditor /';
- Ofckeditor. toolbarset = 'basic ';
- Ofckeditor. width = '000000 ';
- Ofckeditor. height = '000000 ′;
- Ofckeditor. value = ";
- Ofckeditor. replacetextarea ();
- Document. getelementbyidx ("btnshow"). disabled = 'true ';
- Document. getelementbyidx ("btnshow"). style. display = 'none ';
- }
-
-
Today we will talk about how php calls code, for example:
-
- Include ("../editor/fckeditor. php ");
- $ Ofckeditor = new fckeditor ('fckeditor1 ');
- $ Ofckeditor-> basepath = '../editor /';
- $ Ofckeditor-> value = '';
- $ Ofckeditor-> width = '000000 ';
- $ Ofckeditor-> height = '20140901 ';
- $ Ofckeditor-> create ();
- ?>
If php wants to obtain the value, it can directly $ _ post ['fckeditor1.