Skip to content

Commit

Permalink
Item9415: Add right-click context menus for TinyMCEQuickHelp
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@9212 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Sep 19, 2010
1 parent 970d9d8 commit ecc4238
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 18 deletions.
67 changes: 49 additions & 18 deletions TinyMCEPlugin/data/System/TinyMCEQuickHelp.txt
Expand Up @@ -24,59 +24,88 @@
* ==Protect on save== - Use this to protect newly-created advanced macros, where you want to prevent conversion of HTML in the macro to TML. When the topic is re-edited, well-formed macros are automatically re-protected.
* ==Protect forever== - Wrap the selection in Foswiki =<sticky>= tags. Use this to protect content so it always appears _exactly_ as shown in the editor.
</td>
<td rowspan="4" class="secondaryTextcolumn">
*Defining Preference Settings/Macros*
* Create a list item using the toolbar button
* In the list item, type =Set NAME = value=
* Select the value, and assign the ==Protect on save== style to it (only required if the value contains any Foswiki Topic Markup Language or if you style it e.g. to add bold, or if it's sensitive to the number of spaces)
*Using a Macro*
* Just type it in. When the topic is saved, what you type will be saved just as you wrote it.
* If any part of your macro parameters is sensitive to spacing or contains HTML, then select the entire macro and assign the ==Protect on save== style to it before you save.

<span class="foswikiUnvisited">[[%SYSTEMWEB%.Macros][More on macros]]</span>
<td rowspan="6" class="secondaryTextcolumn">
*Copy & paste table rows*
* Right-click table row
* Select 'Row'
* Select 'Copy table row'
* Right-click destination
* Select 'Row'
* Select 'Paste' (before/after)
<img src="%ATTACHURLPATH%/table_contextmenu.png" alt="right-click table rows to copy & paste" />

*Editing the raw text instead of Wysiwyg*
* Select <img src="%PUBURL%/%WEB%/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons/img/hide.gif" alt="Wiki text" />, or use the _Raw Edit_ link in the bottom action bar.
*Setting a chili syntax highlighting class on a verbatim block*
* Right-click the verbatim block
* Select 'jQuery chili'
* Choose syntax
<img src="%ATTACHURLPATH%/chili_formatting.png" alt="chili syntax on VERBATIM" />
</td>
</tr>
<tr>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/indent.png" alt="indent" />
<img src="%ATTACHURLPATH%/outdent.png" alt="outdent" /></td>
<img src="%ATTACHURLPATH%/outdent.png" alt="outdent" />
</td>
<td class="textcolumn">
If the cursor is in a list item, changes the indent.
</td>
</tr>
<tr>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/link.png" alt="link" />
<img src="%ATTACHURLPATH%/unlink.png" alt="unlink" /></td>
<img src="%ATTACHURLPATH%/unlink.png" alt="unlink" />
</td>
<td class="textcolumn">
Links can either point to a URL or to the name of a Foswiki topic. For example =http://foswiki.org=, =TopicNames=, =Webname.TopicNames=, or =Webname.Subweb.WebName=.
</td>
</tr>
<tr>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/anchor.png" alt="anchor" /></td>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/anchor.png" alt="anchor" />
</td>
<td class="textcolumn">
An anchor is a hidden mark you can use to link to a certain part of a topic, for example a heading or a paragraph. An anchor must be a !WikiWord.
</td>
</tr>
<tr>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/clear_formatting.png" alt="clear formatting" /></td>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/clear_formatting.png" alt="clear formatting" />
</td>
<td class="textcolumn">
Clear styles from selected text, such as: colours, size, underline decoration, etc. This feature is useful when you need to clean up content copied from rich text sources such as web pages or word documents.
</td>
</tr>
<tr>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/fullscreen.png" alt="fullscreen" /></td>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/fullscreen.png" alt="fullscreen" />
</td>
<td class="textcolumn">
Toggle fullscreen mode.
</td>
</tr>
<tr>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/autosave.png" alt="autosave" /></td>
<td class="imgcolumn"><img src="%ATTACHURLPATH%/autosave.png" alt="autosave" />
</td>
<td class="textcolumn">
Restore autosave draft. The editor content is saved to your web browser's local storage every %INCLUDE{"TinyMCEPlugin" section="AUTOSAVE_INTERVAL"}% (default). The draft should survive across browser restarts. This feature is useful to recover unsaved work, for example when your browser crashes for some reason, or your network connection fails during save.
</td>
</tr>
<tr>
<td></td>
<td>

*Using a Macro*
* Just type it in. When the topic is saved, what you type will be saved just as you wrote it.
* If any part of your macro parameters is sensitive to spacing or contains HTML, then select the entire macro and assign the ==Protect on save== style to it before you save.

<span class="foswikiUnvisited">[[%SYSTEMWEB%.Macros][More on macros]]</span>

*Editing the raw text instead of Wysiwyg*
* Select <img src="%PUBURL%/%WEB%/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons/img/hide.gif" alt="Wiki text" />, or use the _Raw Edit_ link in the bottom action bar.
</td>
<td>

*Defining Preference Settings/Macros*
* Create a list item using the toolbar button
* In the list item, type =Set NAME = value=
* Select the value, and assign the ==Protect on save== style to it (only required if the value contains any Foswiki Topic Markup Language or if you style it e.g. to add bold, or if it's sensitive to the number of spaces)
</td>
</tr>
</table>
</div>
<div id="foswikiTinyMcePluginRawEditHelp" style="display:none">
Expand All @@ -86,10 +115,12 @@

%META:FILEATTACHMENT{name="anchor.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="autosave.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="chili_formatting.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="clear_formatting.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="Format_Drop_Down.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="fullscreen.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="indent.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="link.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="outdent.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="table_contextmenu.png" attr="" comment="" version="1"}%
%META:FILEATTACHMENT{name="unlink.png" attr="" comment="" version="1"}%
2 changes: 2 additions & 0 deletions TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin/MANIFEST
Expand Up @@ -679,10 +679,12 @@ pub/System/TinyMCEPlugin/wysiwyg.css 0644
pub/System/TinyMCEPlugin/wysiwyg.css.gz 0644
pub/System/TinyMCEQuickHelp/anchor.png 0644
pub/System/TinyMCEQuickHelp/autosave.png 0644
pub/System/TinyMCEQuickHelp/chili_formatting.png 0644
pub/System/TinyMCEQuickHelp/clear_formatting.png 0644
pub/System/TinyMCEQuickHelp/Format_Drop_Down.png 0644
pub/System/TinyMCEQuickHelp/fullscreen.png 0644
pub/System/TinyMCEQuickHelp/indent.png 0644
pub/System/TinyMCEQuickHelp/link.png 0644
pub/System/TinyMCEQuickHelp/outdent.png 0644
pub/System/TinyMCEQuickHelp/table_contextmenu.png 0644
pub/System/TinyMCEQuickHelp/unlink.png 0644

0 comments on commit ecc4238

Please sign in to comment.