TinyMCEPlugin Development

This is the topic to discuss development of download TinyMCEPlugin

help If you need support, go to Support.TinyMCEPlugin where you can ask questions and find answers to previously asked questions. warning If you want to report a bug, or a feature request, go to Tasks.TinyMCEPlugin where you can see already submitted issues and where you can submit a new bug report or feature request.

Active Items

Id Summary Priority Current State Creation Date Last Edit
Item5879 TinyMCE doesn't bind keys for AppleWebKit (e.g. Fluid.app) Enhancement New 04 Aug 2008 - 14:43 11 Dec 2008 - 16:23
Item6099 WYSIWY(A)G - verbatim / highlighting confusion Normal Confirmed 24 Oct 2008 - 18:30 04 Jan 2009 - 12:09
Item4558 Pull down for commonly used icons and strings Enhancement Confirmed 06 Sep 2007 - 15:21 03 Jan 2010 - 03:27
Item741 Allow users to build search queries using the Tinymce editor Enhancement New 11 Jan 2009 - 20:09 03 Jan 2010 - 03:30
Item2574 TinyMCEQuickHelp is English only Low New 04 Jan 2010 - 09:23 04 Jan 2010 - 10:26
Item2285 Fullscreen mode might be confusing Enhancement New 24 Oct 2009 - 07:40 15 Jan 2010 - 22:58
Item1419 Inserting formatted links is not working correctly Enhancement Confirmed 04 Apr 2009 - 12:25 16 Jan 2010 - 00:42
Item8382 WYSIWYG_PROTECTED and _STICKY show up as tiny in Safari Low New 08 Jan 2010 - 00:02 22 Jan 2010 - 19:51
Item5045 Improve handling of network errors Normal Confirmed 29 Nov 2007 - 12:34 24 Jun 2010 - 11:56
Item9200 Attach/image dialogue improvements Enhancement Confirmed 25 Jun 2010 - 03:49 25 Jun 2010 - 03:49
Item1549 TML-to-HTML conversion entered into Editor's undo-history Low Confirmed 01 May 2009 - 17:18 25 Jun 2010 - 06:50
Item9220 autosave drafts should be removed on save/save+continue Enhancement Confirmed 28 Jun 2010 - 23:53 01 Jul 2010 - 05:44
Item9408 Wysiwyg Edit latency improvement Normal Confirmed 29 Jul 2010 - 20:13 19 Aug 2010 - 16:10
Item8582 TinyMCEPlugin editor copies current topic onto the Primary Selection Normal Confirmed 21 Feb 2010 - 00:45 30 Aug 2010 - 00:11
Item9726 How to disable Wysiwyg from an EditTemplate. Normal New 21 Sep 2010 - 04:56 21 Sep 2010 - 05:28
Item9180 Extra <p> on lists Normal New 21 Jun 2010 - 09:41 24 Oct 2010 - 19:54
Item5434 Usability: Add spell checking to TinyMCEPlugin Enhancement New 13 Mar 2008 - 05:30 01 Nov 2010 - 14:08
Item10065 Add preview for WYSIWYG Enhancement New 22 Nov 2010 - 12:53 22 Nov 2010 - 12:53
Item9409 legacyoutput breaks WYSIWYG paragraph outdenting Normal Confirmed 29 Jul 2010 - 20:17 13 Mar 2011 - 23:54
Item9320 Enable WYSIWYG editor to apply roman numeral, alphabetical etc. ordered lists Enhancement Confirmed 14 Jul 2010 - 05:39 14 Mar 2011 - 00:05
Item2123 tinymce fullscrene mode appears without save&cancel Enhancement Confirmed 21 Sep 2009 - 04:21 16 Mar 2011 - 15:18
Item10517 Editing with WYSIWYG opens the page to the bottom, hiding the edit window. Normal Confirmed 21 Mar 2011 - 13:28 21 Mar 2011 - 13:28
Item9198 Tables at top of document: unable to position cursor above Low Confirmed 25 Jun 2010 - 01:26 03 Apr 2011 - 22:42
Item4737 Form fields not kept when going back after save failure (Firefox) Normal Waiting for Feedback 27 Sep 2007 - 12:17 28 Jun 2011 - 06:43
Item11031 Enable the TinyMCE editor for data form textareas Enhancement New 10 Aug 2011 - 10:25 10 Aug 2011 - 15:19
Item8712 outdenting bullet point lists in edit mode which have previously been saved does not correctly with Firefox Enhancement Confirmed 15 Mar 2010 - 09:56 24 Sep 2011 - 12:27
Item10695 Losing table colours at save Enhancement New 02 May 2011 - 10:25 26 Sep 2011 - 08:22
Item2515 Add support for underline and line-through text decorations Enhancement New 21 Dec 2009 - 04:46 21 Dec 2011 - 00:32
Item11469 Can't change the background colour of table cells Low New 24 Jan 2012 - 11:00 24 Jan 2012 - 11:46
Item11486 TinyMCE IE7 bugs: 1. can't set font color 2. blockquote disappearing on save Normal New 31 Jan 2012 - 03:40 31 Jan 2012 - 03:40
Item11493 Trouble with table function in TinyMCE Normal Confirmed 01 Feb 2012 - 14:08 03 Feb 2012 - 07:34
Item10930 When editing using the 'wiki text' editor no WYSIWYG button is shown Enhancement Confirmed 29 Jun 2011 - 13:37 16 Mar 2012 - 01:37
Item10015 Wysiwyg always takes focus when editing a page, even if the text part is at the very bottom. Urgent Confirmed 12 Nov 2010 - 12:49 01 Apr 2012 - 23:22
Item11214 can't create link to image Urgent Confirmed 29 Oct 2011 - 20:31 08 Apr 2012 - 01:53
Item11815 Bulleted list - continue with normal - bug in the WYSIWYG Normal Confirmed 03 May 2012 - 20:01 05 May 2012 - 02:13
Item8455 span elements in list items confuses TinyMCE list button action Normal Waiting for Feedback 02 Feb 2010 - 02:03 05 May 2012 - 18:14
Item11882 Special markup not shown in format dropdown Normal New 20 May 2012 - 10:34 20 May 2012 - 10:34
Item9214 Attach should support Drag and Drop Enhancement New 27 Jun 2010 - 20:50 08 Oct 2012 - 18:34
Item12181 Update TMCE to 3.5.7 Enhancement Waiting for Feedback 22 Oct 2012 - 23:43 25 Oct 2012 - 02:44
Item12340 content deleted when pressed [ENTER] Normal New 09 Jan 2013 - 10:23 09 Jan 2013 - 10:23
Item10107 WYSIWYG editor protects macros inside tags by inserting spans, which then breaks the enclosing tag. Normal Confirmed 02 Dec 2010 - 01:07 11 Jan 2013 - 00:33

Discussion

Updating with a new moxiecode release (svn)

  • In TinyMCEPlugin root directory in svn, use svn statusto confirm there are no extraneous files or local changes
    • Delete extraneous .js, .css and .gz files that aren't named _srcwith
      svn status | perl -ne 'chomp; unlink $_ if s/^\s*\?\s*(.*)(?!_src)(.*)(\.gz|\.js|\.css)$/$1$2$3/;'
  • Unzip the tinymce_3_x_x_dev.zip file you downloaded from sourceforge in TinyMCEPlugin/pub/System/TinyMCEPlugin (should extract to a directory tinymce )
  • As per Tasks.Item8531, remove compressed files:
    for i in $(find -name "*_src*" -not -regex '.*svn.*'); do compressed=${i/_src/}; svn del --force $compressed; svn del --force $compressed.gz ; done
  • svn statusshould now show a list of modified files and any new directories or files that moxiecode has included (less the compressed versions).
    • svn add * --force to add them
  • Re-build the MANIFEST

Updating with a new moxiecode release (git)

  • In TinyMCEPlugin root directory in git, use git clean -fdx to clean the directory and all sub-directories of extraneous files
  • Unzip the tinymce_3_x_x_dev.zip file you downloaded from sourceforge in TinyMCEPlugin/pub/System/TinyMCEPlugin (should extract to a directory tinymce)
  • Remove compressed files:
    for i in $(find -name "*_src*" ); do compressed=${i/_src/}; rm -f $compressed; rm -f $compressed.gz ; done
  • git status . in the TinyMCEPluginroot directory in git should now show a list of modified files and any new directories or files that moxiecode has included (less the compressed versions).
    • git add . to add them
  • Re-build the MANIFEST

Re-build MANIFEST

Working from a fresh MANIFEST generated with something like ./build.pl manifest > MANIFEST from TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin/

What follows is a series of vim commands to get a freshly auto-generated MANIFEST into shape for release. We don't ship developer files because it makes the download quite large, and currently BuildContrib doesn't offer a way to generate the missing minified and .gz targets into the MANIFEST.

Don't ship boring files to end users:

%s/\(.*\/build.*\)/#\1
%s/\(.*\/tools\/.*\)/#\1
%s/\(.*\/classes\/.*\)/#\1
%s/\(.*\/docs\/.*\)/#\1
%s/\(.*\/tests\/.*\)/#\1
%s/^\(.*\.psd\s\d*$\)/#\1

Do .gz of non- _src files:

%s/^\([^#]\)\(.*_src.*\)\@!\(.*\)\.\(js\|css\)\(.*\)$/\1\2\3.\4\5\r\1\2\3.\4.gz\5

Do minified and .gz entries for _src files:

%s/^\([^#]\)\(.*\)\(_src\)\.\(js\|css\)\(.*\)$/\1\2\3.\4\5\r\1\2.\4\5\r\1\2.\4.gz\5

Review

  • Place a !noci after all data/ files and probably after .../TinyMCEPlugin.pm
  • Ensure an entry for TinyMCEPlugin.txt is present
  • Delete extraneous comments generated by ./build.pl manifest at beginning/end of file
  • Use svn diff to see how the MANIFEST has changed and make sure the changes are what you expected.

Building

  • If you're doing a release upload, try to ensure your BuildContrib is using YUI compressor which yields 5-10% smaller files (see Tasks.Item8531 for the original comparison). One way of knowing that you're getting YUI compressed files is that the output will have obfuscated variable/method/object names, whereas CPAN's minfiers only strip whitespace and comments.
-- PaulHarvey - 13 Apr 2010

I removed the legacyoutput patch link, moxiecode pulled my github commit which fixed that issue in TinyMCE 3.4.x.

We still have a problem with the fullscreen plugin, though.

-- PaulHarvey - 09 Mar 2012
Topic attachments
I Attachment Action Size Date Who Comment
wordcount.diffdiff wordcount.diff manage 0.7 K 20 Apr 2010 - 05:04 PaulHarvey patch to wordcount fixing build failure
Topic revision: r15 - 27 Apr 2012, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads