added wysiwyg

This commit is contained in:
messerbill 2013-08-19 16:49:59 +02:00
parent 346f54c106
commit fb760d249e
219 changed files with 10686 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<!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" xml:lang="en" lang="en">
<head>
<title>PHPDevel Wysiwyg HTML Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<?php $wysiwyg_root = 'wysiwyg/'; include 'wysiwyg/php/init.php'; ?>
</head>
<body>
<?php
if (get_magic_quotes_gpc()) $_POST = array_map('stripslashes', $_POST);
$subject = isset($_POST['subject']) ? $_POST['subject'] : 'Subject';
$message = isset($_POST['message']) ? $_POST['message'] : 'Message';
?>
<form action="demo.php" method="post">
<table>
<tr><td><input type="text" name="subject" value="<?=htmlspecialchars($subject);?>" /></td></tr>
<tr><td><?php echo wysiwyg('wysiwyg_id', 'message', $message); ?></td></tr>
<tr><td><input type="submit" value="Submit" /></td></tr>
</table>
</form>
</body>
</html>

View File

@ -0,0 +1,38 @@
PHPDevel Wysiwyg HTML Editor
Copyright (C) 2011 Ilya S. Lyubinskiy
Homepage: http://www.php-development.ru/php-scripts/wysiwyg-html-editor.php
License grant:
1. You may use the script on your website
2. You may use the script in your web application
License limitation:
1. You may not distribute the script except in the case when you distribute it
as a part of your web application
2. You may not remove, hide or modify Info button, Info popup window, copyright
notice and homepage link inside Info popup window without permission of
the author
3. You may not remove or modify copyright notices in script code
4. You may not remove this readme.txt file
Installation:
1. Upload the script to your server
2. Make sure that the following folders are writable:
a) wysiwyg/temp/cache/
b) wysiwyg/temp/compile/
If necessary, set 0777 permissions for these folders.
3. Add the following code to the head section of your html page:
<?php
$wysiwyg_root = 'http://www.your-domain.com/path_to_wysiwyg_folder/';
include 'wysiwyg/php/init.php';
?>
Be sure to enter the correct URL of the wysiwyg folder.
For demo.php the relative URL "wysiwyg/" is used.
4. Add the following code to your html form:
<?php echo wysiwyg('wysiwyg_id', 'form_field_name', 'form_field_value'); ?>
The first parameter is the wysiwyg id.
If you use several wysiwyg editors on the same html page, they all must have
unique ids.
The second parameter is the key in the submitted form.
The third paremeter is the html code to be displayed in the wysiwyg editor.
5. See demo.php for integration example. Demo page validates as XHTML transitional.

View File

@ -0,0 +1,16 @@
html body div.cms_css_popup_main img { border: none; }
html body div.cms_css_popup_main table { border-collapse: collapse; }
html body div.cms_css_popup_main { position: absolute; display: none;
font-size: 0.8em;
font-family: Arial, Sans-Serif;
}
html body div.cms_css_popup_drag { border: 1px solid #000000; border-width: 1px 1px 1px 1px; padding: 2px 6px; background: #802000; font: 900 1.0em Trebuchet MS, Sans-Serif; color: #FFFFFF; }
html body div.cms_css_popup_body { border: 1px solid #000000; border-width: 0px 1px 1px 1px; padding: 6px 6px; background: #DBDBBA; }
html body div.cms_css_popup_drag { cursor: default; }
html body div.cms_css_popup_exit { cursor: pointer; float: right; width: 9px; height: 12px; background: url("../images/popup/exit.gif") no-repeat left bottom; }

View File

@ -0,0 +1,65 @@
html body table.cms_css_wysiwyg img { border: none; }
html body table.cms_css_wysiwyg { border-collapse: collapse; }
html body table.cms_css_wysiwyg th,
html body table.cms_css_wysiwyg td { padding: 0px; }
html body table.cms_css_wysiwyg img.cms_css_wysiwyg
{
cursor: pointer;
border: 1px solid #404040;
background: #F7F7F0;
}
html body img.cms_css_wysiwyg { margin: -5px 1px -5px 0px; }
html body table.cms_css_wysiwyg img.cms_css_wysiwyg { margin: 0px 1px 1px 0px; }
html body table.cms_css_wysiwyg img,
html body table.cms_css_wysiwyg select { vertical-align: middle; }
html body iframe.cms_css_wysiwyg
{
width: 500px;
height: 250px;
background: #FFFFFF;
}
/***** popup ******************************************************************/
html body div.cms_css_wysiwyg_popup_info { width: 250px; }
html body div.cms_css_wysiwyg_popup_info div.cms_css_wysiwyg_popup_info_content
{
border: 1px solid black;
background: #FFFFFF;
padding: 10px;
font: 100 0.8em Verdana, Sans-Serif;
}
html body div.cms_css_wysiwyg_popup_info div.cms_css_wysiwyg_popup_info_content p
{
padding: 0px; margin: 0px 0px 3px 0px;
}
html body div.cms_css_wysiwyg_popup_form { width: 300px; }
html body div.cms_css_wysiwyg_popup_form td { padding: 1px 1px 1px 1px; }
html body div.cms_css_wysiwyg_popup_colors { width: 161px; }
html body div.cms_css_wysiwyg_popup_colors area { cursor: pointer; }
html body div.cms_css_wysiwyg_popup_colors img { float: left; }
html body div.cms_css_wysiwyg_popup_colors br { clear: both; }
html body div.cms_css_wysiwyg_popup_smileys { width: 224px; }
html body div.cms_css_wysiwyg_popup_smileys td { padding: 1px 0px 0px 1px; border: 1px solid #000000; background: #FFFFFF; }
html body div.cms_css_wysiwyg_popup_smileys img { margin: 0px 1px 1px 0px; border: 1px solid #D0D0D0; background: #FFFFFF; }
html body div.cms_css_wysiwyg_popup_smileys img { cursor: pointer; }
html body div.cms_css_wysiwyg_popup_smileys img { float: left; }
html body div.cms_css_wysiwyg_popup_smileys br { clear: both; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1021 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1007 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Some files were not shown because too many files have changed in this diff Show More