Permalink
Browse files

And more readme updates.

  • Loading branch information...
1 parent 1279070 commit 1452f9e11b0fc9c49a9e00f80cd818cf46f5ac40 julmis committed Mar 6, 2006
Showing with 108 additions and 0 deletions.
  1. +108 −0 lib/editor/neweditor_readme.txt
@@ -76,6 +76,114 @@ settings use setconfig() method:
// merge config to defaults and startup the editor.
$editor->starteditor('merge');
+ HTMLArea example1:
+
+ $toolbar = array(
+ array("fontname","fontsize","separator","undo","redo"),
+ array("cut","copy","paste","separator","fullscreen")
+ );
+ $editor->setconfig('toolbar', $toolbar);
+ $editor->setconfig('killWordOnPaste', false);
+ $editor->starteditor('merge');
+
+ HTMLArea example2:
+
+ $args['toolbar'] = array(
+ array("fontname","fontsize","separator","undo","redo"),
+ array("cut","copy","paste","separator","fullscreen")
+ );
+ $args['killWordOnPaste'] = false;
+ $args['pageStyle'] = "body { font-family: Verdana; font-size: 10pt; }";
+
+ $editor->setconfig($args);
+
+ // Print only these settings and start up the editor.
+ $editor->starteditor();
+
+There are three possible arguments for starteditor method. Which are:
+append, merge and default.
+
+ append: Leave default values untouched if overlapping settings are found.
+ merge: Override default values if same configuration settings are found.
+default: Use only default settings.
+
+If none of these options is present then only those settings are used what
+you've set with setsetting method.
+
+
+
+TinyMCE configuration options
+=============================
+
+You can find full list of configuration options and possible values
+at http://tinymce.moxiecode.com/tinymce/docs/reference_configuration.html
+
+HTMLArea configuration options
+==============================
+
+Possible configuration options for HTMLArea are:
+
+ width (string)
+ **************
+ Width of the editor as a string. Example: "100%" or "250px".
+
+ height (string)
+ ***************
+ Height of the editor as a string. Example: "100%" or "150px".
+
+ statusBar (boolean)
+ *******************
+ Print out statusbar or not. Example: true or false.
+
+ undoSteps (integer)
+ *******************
+ Amount of undo steps to hold in memory. Default is 20.
+
+ undoTimeout (integer)
+ *********************
+ The time interval at which undo samples are taken. Default 500 (1/2 sec).
+
+ sizeIncludesToolbar (boolean)
+ *****************************
+ Specifies whether the toolbar should be included in the size or not.
+ Default is true.
+
+ fullPage (boolean)
+ ******************
+ If true then HTMLArea will retrieve the full HTML, starting with the
+ <HTML> tag. Default is false.
+
+ pageStyle (string)
+ ******************
+ Style included in the iframe document.
+ Example: "body { background-color: #fff; font-family: 'Times New Roman', Times; }".
+
+ killWordOnPaste (boolean)
+ *************************
+ Set to true if you want Word code to be cleaned upon Paste. Default is true.
+
+ toolbar (array of arrays)
+ *************************
+ Buttons to print in toolbar. Must be array of arrays.
+ Example: array(array("Fontname","fontsize"), array("cut","copy","paste"));
+ Will print toolbar with two rows.
+
+ fontname (associative array)
+ ****************************
+ Fontlist for fontname drowdown list.
+ Example: array("Arial" => "arial, sans-serif", "Tahoma", "tahoma,sans-serif");
+
+ fontsize (associative array)
+ ****************************
+ Fontsizes for fontsize dropdown list.
+ Example: array("1 (8pt)" => "1", "2 (10pt)" => "2");
+
+ formatblock (associative array)
+ *******************************
+ An associative array of formatting options for formatblock dropdown list.
+ Example: array("Heading 1" => "h1", "Heading 2" => "h2");
+
+
To be continue...
$Id$

0 comments on commit 1452f9e

Please sign in to comment.