Esempio n. 1
0
<?php

require_once "../richtexteditor/include_rte.php";
$rte = new RichTextEditor();
$rte->MvcInit();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>RichTextEditor - Editor as image selector</title>
    <link rel="stylesheet" href="../example.css" type="text/css" />
    <script type="text/javascript">
		var editor;
		var showed = false;

		function RichTextEditor_OnLoader(loader) {
			var config = loader._config;
			config.showtoolbar = false;
			config.showtoolbar_code = false;
			config.showbottombar = false;
			config.preloadplugins = "";
			var div = document.getElementById(config.containerid);
			div.style.display = "none";
		}
		function ShowEditorGallery()
		{
			showed=true;
			if(editor)
			{
				editor.ExecUICommand(null,"InsertGallery");
			}
Esempio n. 2
0
<?php

require_once "../richtexteditor/include_rte.php";
?>
 
<?php 
$rte = new RichTextEditor();
$editortext = "";
$rte->Name = "Editor1";
$rte->ContentCss = "example.css";
$rte->Text = "<table cellspacing=\"4\" cellpadding=\"4\" border=\"0\"><tr><td><p><img src=\"http://www.richtexteditor.com/uploads/j0262681.jpg\" alt=\"\" /></p></td> <td> <p>When your algorithmic and programming skills have reached a level which you cannot improve any further, refining your team strategy will give you that extra edge you need to reach the top. We practiced programming contests with different team members and strategies for many years, and saw a lot of other teams do so too.</p></td></tr> <tr> <td> <p> <img src=\"http://www.richtexteditor.com/uploads/PH02366J.jpg\" alt=\"\" /></p></td> <td> <p>From this we developed a theory about how an optimal team should behave during a contest. However, a refined strategy is not a must: The World Champions of 1995, Freiburg University, were a rookie team, and the winners of the 1994 Northwestern European Contest, Warsaw University, met only two weeks before that contest.</p></td></tr></table>";
$rte->MvcInit();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>RichTextEditor - XHTML Output</title>
    <link rel="stylesheet" href="../example.css" type="text/css" />
</head>
<body>
	<form method="post" action="<?php 
echo htmlentities($_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"]);
?>
">
       <h1>
            Support output well-formed HTML and XHTML</h1>
        <p>
            This example show you RichTextEditor supports output well-formed XHTML. Your choice
			of XHTML 1.0 or HTML 4.01 output.
        </p>
Esempio n. 3
0
<?php

require_once "../richtexteditor/include_rte.php";
?>
          
<?php 
$rte = new RichTextEditor();
$type = $_GET["type"];
if (strlen($type) > 0) {
    if ($type == "b") {
        $rte->SetConfig("format_bold", "<b>");
    } else {
        if ($type == "span") {
            $rte->SetConfig("format_bold", "<span style='font-weight:bold'>");
        }
    }
}
$rte->Text = "Type here";
$rte->MvcInit();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>RichTextEditor - Formatting bold button</title>
    <link rel="stylesheet" href="../example.css" type="text/css" />
    <script type="text/javascript" src="../changeurlparam.js"></script>
    <script type="text/javascript">
		var editor;
		function RichTextEditor_OnLoad(rteeditor) {
			editor = rteeditor;
Esempio n. 4
0
<?php

require_once "../richtexteditor/include_rte.php";
$rte = new RichTextEditor();
$rte->Name = "Editor1";
$rte->ContentCss = "example.css";
$type = $_GET["type"];
$policyfiletext = "";
$_store = "";
$file;
$storages;
if (strlen($type) > 0) {
    switch ($type) {
        case "Administrators":
            $rte->SecurityPolicyFile = "admin.config";
            $policyfiletext = "Policy file:" . $rte->SecurityPolicyFile . "<br/>";
            break;
        case "Members":
            $rte->SecurityPolicyFile = "default.config";
            $policyfiletext = "Policy file:" . $rte->SecurityPolicyFile . "<br/>";
            break;
        case "Guest":
            $rte->SecurityPolicyFile = "guest.config";
            $policyfiletext = "Policy file:" . $rte->SecurityPolicyFile . "<br/>";
            break;
        case "John":
            $rte->SecurityPolicyFile = "admin.config";
            $file = $rte->LoadConfigFile();
            $storages = $file->GetItems("Gallery", false, true);
            $_store = $storages[1]->StoragePath . "/John";
            $rte->SetSecurity("Gallery", "*", "StoragePath", $_store);