Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Nominate XOOPS!

Learn XOOPS Core

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $25.00
Net Balance: $23.97
Left to go: $76.03

Donations
Anonymous ($25)Aug-11

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 4 6 Abuse adslight Android AntiHarvesting AntiSpam API Apple Battlefield billige Blocks Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo download Dresses evden facebook Fat floor for free Gateway Google Guide herre Home Honeypot HP html5 Human HỘ iPhone jQuery Language List log Loss module modules Monster new newbb news NHÀ online PARK Payment phone PHP Prevention profile project Protector publisher RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Smoking Spam stem Studio support tag tags tdmcreate template The Theme themes User userlog web weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137705

EdcEssex

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 3 »


#1 Posted on: 2011/11/9 15:17 TinyMCE : using BR elements instead of P elements
I don't know if this solution already exist on Xoops.org but I propose it here.

If you want to use BR elements instead of P elements with TinyMCE editor :

in
class/xoopseditor/tinymce/settings.php

delete line 36 :

"force_p_newlines" => true,


and replace with:

// use BR elements instead of P elements
"forced_root_block" => false,
"force_p_newlines" => false,
"force_br_newlines" => true,


I think it would be nice to definitively change the "P" elements with "BR" so that the line breaks work fine with the modules.

Top

Cesag
Moderator
Moderator
Joined:
2010/2/1 15:21
From France
Group:
Registered Users
Community Coordinator (temporary)
Posts: 743
(Show More) (Show Less)


#2 Posted on: 2011/11/12 1:49 Re: TinyMCE : using BR elements instead of P elements
If other people think that it's important, please submit it to feature requests...

Top


Please support XOOPS & DONATE
Use 2.5.7 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 8041
(Show More) (Show Less)


#3 Posted on: 2011/11/12 5:43 Re: TinyMCE : using BR elements instead of P elements
As you are the one to answer me, what do you think?
Be able to make line breaks in cbb or other module with TinyMCE. Is it important or not?

Top

Cesag
Moderator
Moderator
Joined:
2010/2/1 15:21
From France
Group:
Registered Users
Community Coordinator (temporary)
Posts: 743
(Show More) (Show Less)


#4 Posted on: 2011/11/12 7:37 Re: TinyMCE : using BR elements instead of P elements
I agree with cesag, dhtml has the option to add <br> line breaks, not <p>. <br> should be the default behavior in tinyMCE.

Top


Xoops User Utilities | Xoops Search Engine | vil3/trabisdementia
trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Webmaster
Registered Users
Posts: 2198
(Show More) (Show Less)


#5 Posted on: 2011/11/14 3:04 Re: TinyMCE : using BR elements instead of P elements
OK, I've changed that in SVN

Top


Please support XOOPS & DONATE
Use 2.5.7 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 8041
(Show More) (Show Less)


#6 Posted on: 2011/11/14 6:30 Re: TinyMCE : using BR elements instead of P elements
Quote:

trabis wrote:
... <br> should be the default behavior in tinyMCE.


I disagree. Breaks are fine for forms and plain text, but in WYSIWYG the paragraph tag is the best way to get nicely formatted type using CSS. It is the most closely aligned to conventional typesetting and the one people are used to using with Tinyeditor. By all means add breaks as a selectable option, but I would not change the way Tinyeditor has worked for years to make it the default.

Top


A thread is for life. Not just for Christmas.
Peekay
XOOPS is my life!
XOOPS is my life!
Joined:
2004/11/20 4:55
From UK
Group:
Registered Users
Posts: 2295
(Show More) (Show Less)


#7 Posted on: 2011/11/14 6:52 Re: TinyMCE : using BR elements instead of P elements
Who else has an opinion about it? Do we need to vote on this?

We would like to release XOOPS 2.5.4 sometime this week, so we would like to get all your feedback related to this issue ASAP...

Top


Please support XOOPS & DONATE
Use 2.5.7 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 8041
(Show More) (Show Less)


#8 Posted on: 2011/11/14 7:59 Re: TinyMCE : using BR elements instead of P elements
Quote:

Peekay wrote:
Quote:

trabis wrote:
... <br> should be the default behavior in tinyMCE.


I disagree. Breaks are fine for forms and plain text, but in WYSIWYG the paragraph tag is the best way to get nicely formatted type using CSS. It is the most closely aligned to conventional typesetting and the one people are used to using with Tinyeditor. By all means add breaks as a selectable option, but I would not change the way Tinyeditor has worked for years to make it the default.


I agree also

I don't like <p> tags because they always give me extra padding but you are correct, it can be fixed with css and we don't want to upset no one.

Top


Xoops User Utilities | Xoops Search Engine | vil3/trabisdementia
trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Webmaster
Registered Users
Posts: 2198
(Show More) (Show Less)


#9 Posted on: 2011/11/14 10:03 Re: TinyMCE : using BR elements instead of P elements
An module or something for configuring editors in Xoops would be nice. I ran a lot of sites, and all of them are different, with custom settings, so some GUI would be great.

Top


Docek Nove godine 2014
Drug addict rehab & help
Car owners manuals
bjuti
Just can't stay away
Just can't stay away
Joined:
2009/1/7 17:55
From Belgrade, Serbia
Group:
Registered Users
Posts: 859
(Show More) (Show Less)


#10 Posted on: 2011/11/14 11:25 Re: TinyMCE : using BR elements instead of P elements
Hold the shift key and press Enter key (return on Mac) to add a break tag in TinyMCE.

Top

dbman
Friend of XOOPS
Friend of XOOPS
Joined:
2005/4/28 0:15
From Cape Breton, Nova Scotia
Group:
Registered Users
Posts: 169
(Show More) (Show Less)




(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]