Bug 4244 - Request for further TinyMCE features in limited cases
Request for further TinyMCE features in limited cases
Status: RESOLVED FIXED
Product: OJS
Classification: Unclassified
Component: User Interface
2.3
PC Mac OS X 10.3
: P5 enhancement
Assigned To: Matthew Crider
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-05 11:07 PDT by James MacGregor
Modified: 2009-05-08 17:03 PDT (History)
2 users (show)

See Also:
Version Reported In:
Also Affects:


Attachments
Patch against OJS pre-2.3 CVS (1.48 KB, patch)
2009-05-05 16:23 PDT, Matthew Crider
Details | Diff
Screenshot of updated TinyMCE editor (6.77 KB, image/png)
2009-05-05 16:24 PDT, Matthew Crider
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James MacGregor 2009-05-05 11:07:32 PDT
A couple of TinyMCE enhancement requests. These are especially pertinent to larger input fields, where users may be entering a number of pages worth of text, but don't want to write in Word and then paste over: 

- It would be great to be able to resize any TinyMCE text boxes on the fly by clicking and dragging a corner (possible in Wordpress, and on the Moxiecode website's demonstration). 

- Also great to include the full-screen option. 

- Finally, also great to include the full range of copy& paste items. 

Any thoughts on these, Matt? I don't think these options would be necessary for every single TinyMCE instance -- rather, they would be best for the longer entry forms (review forms; guideline fields; etc.). However, I'm not sure whether you can limit options on a per-field basis or not. 

(courtesy of http://pkp.sfu.ca/support/forum/viewtopic.php?f=2&t=4456&p=17383#p17383)
Comment 1 Matthew Crider 2009-05-05 11:36:39 PDT
There isn't really a way to specify TinyMCE plugins to load only on certain pages, but I think adding the full-screen button (and the copy-paste buttons) to each instance is a good idea.  I'll test out the resize plugin too, but I have a feeling it won't play very well with our CSS.
Comment 2 James MacGregor 2009-05-05 11:44:00 PDT
(In reply to comment #1)
> There isn't really a way to specify TinyMCE plugins to load only on certain
> pages, but I think adding the full-screen button (and the copy-paste buttons)
> to each instance is a good idea.  I'll test out the resize plugin too, but I
> have a feeling it won't play very well with our CSS.

Thanks, Matt, sounds great. A working full-screen button would somewhat obviate the resize plugin, although I do find it a useful one on my blag.
Comment 3 Matthew Crider 2009-05-05 16:23:42 PDT
Created attachment 1727 [details]
Patch against OJS pre-2.3 CVS

As I suspected, the editor resize function does not behave well--for instance, if you resize it bigger than the main div (so it extends into the sidebar), it obscures the resize handle so you can't resize it again.

But, the fullscreen mode works fine, and I've also added some extra copy/paste buttons and dividers to separate functionality.  James, if looks alright I'll backport and commit.
Comment 4 Matthew Crider 2009-05-05 16:24:12 PDT
Created attachment 1728 [details]
Screenshot of updated TinyMCE editor
Comment 5 James MacGregor 2009-05-05 17:09:52 PDT
Matt, I applied the patch, and the result looks great. Fullscreen works, as does the rest.
Comment 6 Matthew Crider 2009-05-08 17:03:09 PDT
Committed to harvester, ocs and ojs devel lines.