Home pcDTR Forum
If you like the work i do, you know what to do.
Welcome, Guest
Please Login or Register.    Lost Password?

[SOLVED] EDITOR: SPAN tags load in JCE in frontend
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [SOLVED] EDITOR: SPAN tags load in JCE in frontend
#42
[SOLVED] EDITOR: SPAN tags load in JCE in frontend 10 Months ago Karma: 0
Trying to be too clever too quickly with PCDTR plugin, I've discovered a bug when you have applied PCDTR to a style that is applied to part of the text in an article.

What I've done is create a div in the article called textheading, which I've then rendered using PCDTR to change the font.

However, when I edit the article (using JCE) from the front end, the sections with PCDTR applied to them goes from:

<div id="textheading">Lorem ipsum dolores</div>

to

<div id="textheading pcdtr"><span id="pcdtr1">Lorem</span><span id="pcdtr2">ipsum</span><span id="pcdtr3">dolores</span></div>

By adding the pcdtr to the DIV ID, the page layout then breaks.

As PCDTR only applies in the front end, I have the client editing the articles from the backend at the moment. It would be nice to discover a way to have the editor ignore PCDTR when the editor loads.
partic
Joomla Consultant
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 40485406 Gender: Male particthistle KPS particthistle pjackson@kpsystems.com.au Location: Melbourne Australia Birthday: 04/21
Last Edit: 2009/11/14 05:55 By partic.
The administrator has disabled public write access.
Patrick Jackson
KPS

Joomla Consultant's Consultant
Melbourne Australia
www.kpsystems.com.au
 
#49
Re:EDITOR: SPAN tags load in JCE in front end 10 Months ago Karma: 2
The problem is that pcDTR does it stuff after all html have rendered.

A solution could be to check for the JCE editors class and don't parse the html in them.
flowman
Admin
Posts: 110
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#53
Re:EDITOR: SPAN tags load in JCE in front end 10 Months ago Karma: 0
Thanks for that info (and new version I'm installing in about 15 min to fix other issues).

Will post in the JCE forum to see how to go about stripping pcdtr when editor loads.
partic
Joomla Consultant
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 40485406 Gender: Male particthistle KPS particthistle pjackson@kpsystems.com.au Location: Melbourne Australia Birthday: 04/21
The administrator has disabled public write access.
Patrick Jackson
KPS

Joomla Consultant's Consultant
Melbourne Australia
www.kpsystems.com.au
 
#54
Re:EDITOR: SPAN tags load in JCE in front end 10 Months ago Karma: 2
On line 99 in pcdtr.php file after '// Add spans with ids' add this.

if ($node->parent->class=='mce_editable' || $node->parent->class=='mceEditor') continue;
flowman
Admin
Posts: 110
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/11/12 22:46 By flowman.
The administrator has disabled public write access.
 
#75
Re:EDITOR: SPAN tags load in JCE in front end 9 Months, 4 Weeks ago Karma: 0
I see that you've put this into 2.0.2 and it worked a treat!

Thanks!
partic
Joomla Consultant
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 40485406 Gender: Male particthistle KPS particthistle pjackson@kpsystems.com.au Location: Melbourne Australia Birthday: 04/21
The administrator has disabled public write access.
Patrick Jackson
KPS

Joomla Consultant's Consultant
Melbourne Australia
www.kpsystems.com.au
 
Go to topPage: 1
Banner
Copyright © 2010 pcDTR. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.