From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- .../protected/pages/Controls/HtmlArea4.page | 28 ++++++++++++++ .../pages/Controls/Samples/TConditional/Home.page | 4 +- .../pages/Controls/Samples/THtmlArea4/Home.page | 43 ++++++++++++++++++++++ .../pages/Controls/Samples/THtmlArea4/Home.php | 20 ++++++++++ .../protected/pages/Controls/Standard.page | 4 ++ 5 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/HtmlArea4.page create mode 100755 demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.page create mode 100755 demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.php (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/HtmlArea4.page b/demos/quickstart/protected/pages/Controls/HtmlArea4.page new file mode 100644 index 00000000..1fa33424 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/HtmlArea4.page @@ -0,0 +1,28 @@ + + +

THtmlArea4

+ + +

+THtmlArea4 is a newer version of the THtmlArea component, based on TinyMCE version 4. Please refer to THtmlArea for basic usage. +

+ +

+THtmlArea4 provides the WYSIWYG feature by wrapping the functionalities provided by the TinyMCE project version 4. +

+ +

+The default editor tries to mimic THtmlArea's old style and behaviour, disabling the menubar and permitting the resize of the editor in both directions. To enable the menubar or change any other aspect of the editor layout, use the Options property to add additional editor options with each options on a new line. See TinyMCE website for a complete list of options. The following example displays a menu specific for HTML table manipulation, +

+ +<com:THtmlArea> + <prop:Options> + plugins: "table" + menubar: "file edit table" + </prop:Options> +</com:THtmlArea> + + + + +
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page index 7baa16d6..9e37b675 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page @@ -1,9 +1,9 @@

TConditional Samples

- + - + diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.page b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.page new file mode 100755 index 00000000..6bb6449c --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.page @@ -0,0 +1,43 @@ + + +

THtmlArea4 Samples

+ + + + + + + + + +
+THtmlArea4 with default settings: + + + +
+ +
+THtmlArea4 with manually set options + + + + resize: false + plugins: "charmap code wordcount" + toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code charmap | ", + + + +
+ +
+THtmlArea4 with visual editting disabled: + + +
+ +
+ +
+ +
diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.php b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.php new file mode 100755 index 00000000..c513c8f7 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea4/Home.php @@ -0,0 +1,20 @@ +Result1->Text="You have entered: ".$this->HtmlArea1->Text; + } + + public function button2Clicked($sender,$param) + { + $this->Result2->Text="You have entered: ".$this->HtmlArea2->Text; + } + + public function button3Clicked($sender,$param) + { + $this->Result3->Text="You have entered: ".$this->HtmlArea3->Text; + } +} + diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index 188cdd19..463f90a5 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -59,6 +59,10 @@ THtmlArea represents a WYSIWYG text input field taking user input that are in HTML format. +
  • + THtmlArea4 is the counterpart of THtmlArea based on TinyMCE4. +
  • +
  • THyperLink represents a hyperlink on a Web page.
  • -- cgit v1.2.3