Loading...
 

Plugin WYSIWYG

Introduced in Tiki9

Use this wiki plugin to have a WYSIWYG section for part of a page. For example, you want to use WYSIWYG for a table, but keep most of the page as wiki syntax. The WYSIWYG feature (which is when you want the full page to be WYSIWYG) doesn't need to be activated.

Parameters

Introduced in Tiki 9.
Go to the source code
Preferences required: wikiplugin_wysiwyg

Parameters Accepted Values Description Default Since
(body of plugin) Content
height text Minimum height for DIV. Default: 300px 300px 9.0
width text Minimum width for DIV. Default: 100px 100px 9.0
use_html (blank)
y
n
By default, the body (content) of calls to the WYSIWYG plugin is interpreted according to the "Use Wiki syntax in WYSIWYG" (wysiwyg_htmltowiki) preference. By default, "Use HTML" is considered enabled if "Use Wiki syntax in WYSIWYG" is disabled, and vice versa. This parameter allows overriding that preference if needed. y 14.1



Note that HTML Purifier is always on for your security when using this plugin. Invalid/insecure HTML is scrubbed. If you don't want this, you need to manually edit lib/wiki-plugins/wikiplugin_wysiwyg.php

Example

When you see the page, you can mouse over any section of the page surrounded by PluginWysiwyg tags in the source, and the background of that seection will change color (section 2 in the following screenshot). If you click on one of those sections (section 1 in the following screenshot), you open it for edition in WYSIWYG mode, while keeping the rest of the page still closed for edition.


If you edit the wiki page as usual, you will see the wiki syntax with sections in html syntax where the html tags are enclosed by PluginWysiwyg tags.

! Section 1
{WYSIWYG()}

See the documentation and the dev page enlightened

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut a ligula velit, imperdiet accumsan erat. Fusce ut enim eget tellus interdum gravida. Nulla luctus dapibus ipsum nec posuere. Curabitur quis ligula eget est dignissim placerat id quis augue. Sed eu eros at massa pretium pharetra sed ut est. Donec id gravida mauris. Integer id ipsum ac nisi porta lobortis. Vestibulum scelerisque viverra ipsum sed euismod. Quisque vitae augue ultrices metus accumsan ornare. Ut suscipit lorem sit amet leo pharetra sit amet gravida urna tempor.

(...)

 

{WYSIWYG} ! Section 2 {WYSIWYG()}

 

Lorem ipsum dolor sit amet, consectetur adipiscing élit. Ut a ligula velit, imperdiet accumsan erat. Fusce ut enim eget tellus interdum gravida. Nulla luctus dapibus ipsum nec posuere. Curabitur quis ligula eget est dignissim placerat id quis augue. Sed eu eros at massa pretium pharetra sed ut est. Donec id gravida mauris. Integer id ipsum ac nisi porta lobortis. Vestibulum scelerisque viverra ipsum sed euismod. Quisque vitae augue ultrices metus accumsan ornare. Ut suscipit lorem sit amet leo pharetra sit amet gravida urna tempor.

(...)

 

dsfsadf sdfsdf
safsf sdfsdaf
sdfsdaf sdf
(...)

 

{WYSIWYG}
List Slides