This question about Missing functionality: Task closed
Broken edit page, and I want TinyMCE to emit newline (<br/>
tags) rather than paragraph tags on enter key
I have two problems I need help with:
- My WYSIWYG editor and Wiki Text Editor pages are insanely long. The edit box extends for 3917 pages (I checked via print, but I didn't actually print it). I can't get it to go smaller, even with the buttons at the bottom of the page or the arrow at the bottom corner of the box. I have tried reseting everything I can find, and nothing has worked. Please advise.
- My other issue is that I have a preference for non-doublespaced content. I would like to know if there's an extension or anything that can let me use "enter" to render the <br /> tag in the WYSIWYG editor so I don't have to hit "shift+enter" over a thousand times nor type the tag that many times. I also don't want to have to use bulleted lists on every page.
Thank you to anyone who can help me.
--
BillyRayStupendous - 13 Feb 2012 Hi there,
- That doessound insane! Could you please try,
- TinyMCE developers are quite opinionated about this, here's their FAQ item discussing it. The force br newlines doc explains how to configure TinyMCE for this behaviour, but makes a good point you can get the same effect through CSS styling of
<p>
tags. Hrm, let's see if that works in Foswiki (perhaps not, thanks to Tasks.Item11316)
Copy-paste this into a special helper topic, call it, for example,
Main.ParaStylesHelper:
%STARTSECTION{"parastyles"}%%ADDTOZONE{
"head"
text="<literal><style>div.foswikiTopic p { margin: 0 }</style></literal>"
}%%ENDSECTION{"parastyles"}%
Then,
%INCLUDE% it anywhere you need it, like this:
%INCLUDE{"Main.ParaStylesHelper" section="parastyles"}%
You can put that
%INCLUDE%
into your
WebLeftBar, if you want to enable it for an entire web.
Test, paragraph.
Test, paragraph.
Test, paragraph.
Test, 5 newlines below previous.
Unfortunately, it seems we lose the ability to create newlines at all, with that approach.
Let's see if we can come up with a
TinyMCEPlugin config which uses
forced_root_block: false
-
NB: TinyMCE relies on forced_root_block
to work around browser bugs, this way lies trouble!
First, I created
Question1035TinyMCEPlugin, which you should place in
Main.TinyMCEPlugin
Then, we set the
TINYMCEPLUGIN_INIT
preference to use this new topic for TinyMCE config:
* Set TINYMCEPLUGIN_INIT_TOPIC = Support.Question1035TinyMCEPlugin
... except I still couldn't make it work
Sorry.
--
PaulHarvey - 13 Feb 2012
Thank you so much! I'm a rank novice, but I'll make time to try all this.
--
BillyRayStupendous - 13 Feb 2012
Closed due to silence.
--
CrawfordCurrie - 31 Aug 2013