Replace FCKeditor text with Inline + textarea

Source: Internet
Author: User

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<! --
* FCKeditor-the text editor for Internet-http://www.fckeditor.net
* Copyright (c) 2003-2010 Frederico Caldeira knabben
*
* = Begin license =
*
* Licensed under the terms of any of the following licenses at your
* Choice:
*
*-GNU General Public License version 2 or later (the "GPL ")
* Http://www.gnu.org/licenses/gpl.html
*
*-GNU lesser General Public License version 2.1 or later (the "lgpl ")
* Http://www.gnu.org/licenses/lgpl.html
*
*-Mozilla public license version 1.1 or later (the "MPL ")
* Http://www.mozilla.org/MPL/MPL-1.1.html
*
* = End license =
*
* Sample Page.
-->
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> FCKeditor-sample </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Meta name = "Robots" content = "noindex, nofollow"/>
<Link href = "../sample.css" rel = "stylesheet" type = "text/CSS"/>
<SCRIPT type = "text/JavaScript" src = ".../FCKeditor. js"> </SCRIPT>
</Head>
<Body>
<H1>
FCKeditor-JavaScript-sample 1
</H1>
<Div>
This sample displays a normal HTML form with an FCKeditor with full features enabled.
</Div>
<HR/>
<Form action = "../PHP/sampleposteddata. php" method = "Post" target = "_ blank">
<SCRIPT type = "text/JavaScript">
<! --
// Automatically calculates the editor base path based on the _ samples directory.
// This is usefull only for these samples. A real application shoshould use something like this:
// Ofckeditor. basepath = '/FCKeditor/'; // '/FCKeditor/' is the default value.
VaR sbasepath = Document. Location. href. substring (0, document. Location. href. lastindexof ('_ samples '));

VaR ofckeditor = new FCKeditor ('fckeditor1 ');
Ofckeditor. basepath = sbasepath;
Ofckeditor. Height = 300;
Ofckeditor. value = '<p> This is some <strong> sample text </strong>. you are using <a href = "http://www.fckeditor.net/"> FCKeditor </A>. </P> ';
Ofckeditor. Create ();
// -->
</SCRIPT>
<Br/>
<Input type = "Submit" value = "Submit"/>
</Form>
</Body>
</Html>

 

 

 

 

 

 

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<! --
* FCKeditor-the text editor for Internet-http://www.fckeditor.net
* Copyright (c) 2003-2010 Frederico Caldeira knabben
*
* = Begin license =
*
* Licensed under the terms of any of the following licenses at your
* Choice:
*
*-GNU General Public License version 2 or later (the "GPL ")
* Http://www.gnu.org/licenses/gpl.html
*
*-GNU lesser General Public License version 2.1 or later (the "lgpl ")
* Http://www.gnu.org/licenses/lgpl.html
*
*-Mozilla public license version 1.1 or later (the "MPL ")
* Http://www.mozilla.org/MPL/MPL-1.1.html
*
* = End license =
*
* Sample Page.
-->
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> FCKeditor-sample </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Meta name = "Robots" content = "noindex, nofollow"/>
<Link href = "../sample.css" rel = "stylesheet" type = "text/CSS"/>
<SCRIPT type = "text/JavaScript" src = ".../FCKeditor. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">

Window. onload = function ()
{
// Automatically calculates the editor base path based on the _ samples directory.
// This is usefull only for these samples. A real application shoshould use something like this:
// Ofckeditor. basepath = '/FCKeditor/'; // '/FCKeditor/' is the default value.
VaR sbasepath = Document. Location. href. substring (0, document. Location. href. lastindexof ('_ samples '));

VaR ofckeditor = new FCKeditor ('fckeditor1 ');
Ofckeditor. basepath = sbasepath;
Ofckeditor. replacetextarea ();
}

</SCRIPT>
</Head>
<Body>
<H1>
FCKeditor-JavaScript-sample 2 <Div>
This sample displays a normal HTML form with an FCKeditor with full features enabled.
It uses the "replacetextarea" command to create the editor.
</Div>
<HR/>
<Form action = "../PHP/sampleposteddata. php" method = "Post" target = "_ blank">
<Div>
<Textarea name = "fckeditor1" rows = "10" Cols = "80" style = "width: 100%; Height: 200px"> & lt; P & gt; this is some & lt; strong & gt; sample text & lt;/strong & gt ;. you are using & lt; a href = "http://www.fckeditor.net/" & gt; FCKeditor & lt;/A & gt ;. & lt;/P & gt; </textarea>
</Div>
<Br/>
<Input type = "Submit" value = "Submit"/>
</Form>
</Body>
</Html>

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.