Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro
Author Message
hinksta
Worker
Worker



Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sun Jan 15, 2006 8:28 pm Reply with quote

I copied an article from the forum into the editor.
In the preview the text sizes are correct, but when saved they have changed.
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Sun Jan 15, 2006 11:26 pm Reply with quote

The problem with text sizes is a function of your theme's CSS, rather than the WYSIWYG editor. You can either specify a different class when editing, or change the default class in your CSS.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
hinksta







PostPosted: Mon Jan 16, 2006 7:29 am Reply with quote

I see, that's a bit of a pain, wouldn't it be better all round if the theme css and forum css were integrated as 1?
 
kguske







PostPosted: Mon Jan 16, 2006 8:04 am Reply with quote

Yes...everything can be done with time and money...and more time...
 
hinksta







PostPosted: Mon Jan 16, 2006 8:31 am Reply with quote

I have some news items that look ok in preview and on my front page home made news block, but in the news home page and the full article's they are in italics.
 
hinksta







PostPosted: Mon Jan 16, 2006 8:52 am Reply with quote

I think this is because the articles are written by a member

can I change this?
 
hinksta







PostPosted: Mon Jan 16, 2006 9:02 am Reply with quote

got it, changed in theme.php

Code:
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";

to
Code:
$content .= "<i>"._WRITES."</i><br><br>\"$thetext\"$notes\n";
 
kguske







PostPosted: Mon Jan 16, 2006 9:26 am Reply with quote

Great!
 
hinksta







PostPosted: Mon Jan 16, 2006 9:28 am Reply with quote

back to this text size problem

if I select any text size in the editor it looks good but when saved it has gone.

Your saying to make use of the text size I need to write it into the css.
If this is the way to do it, could you give me some idea what I should write in the css to cover all sizes
 
kguske







PostPosted: Mon Jan 16, 2006 9:41 am Reply with quote

There are much better tutorials on this than I could give you... Try: [ Only registered users can see links on this board! Get registered or login! ]
 
hinksta







PostPosted: Mon Jan 16, 2006 10:41 am Reply with quote

If I add class to the css for the text size I will have to change the size manually in the source for every size change. Plus you can no longer see the correct size in the preview
Is this the only way?

Also, having big problems with IE
If I have

Code:
<ed1>test</ed1>

<br />
<ed2>test</ed2>
<br />
<ed3>test</ed3>
<br />
<ed4>test</ed4>
<br />
<ed5>test</ed5>
<br />
<ed6>test</ed6>
<br />
<ed7>test</ed7>


After changing back from source and then back to source again I get

Code:
<ed1></ed1>test <br /><ed2></ed2>test <br /><ed3></ed3>test <br /><ed4></ed4>test <br /><ed5></ed5>test <br /><ed6></ed6>test <br /><ed7></ed7>test


This is not a problem in Firefox

the css i've added is

Code:
ed1 {font-size: 50%}

ed2 {font-size: 75%}
ed3 {font-size: 100%}
ed4 {font-size: 125%}
ed5 {font-size: 150%}
ed6 {font-size: 175%}
ed7 {font-size: 200%}


this works in firefox but not IE
 
hinksta







PostPosted: Fri Jan 20, 2006 7:36 pm Reply with quote

I installed this WYSIWYG editor because it looked great and thought the feedback so far was very limited and maybe you could use some more.

I respect and understand you are very busy but if you have the css working you might have shared that info.
I also cannot see images and think the source formatting is not stable

I wonder if the version you have is different to the one in RavenNuke76 v2.0.1 Distro or maybe I have just done something wrong.
This has really put me off doing it again.
 
kguske







PostPosted: Sat Jan 21, 2006 9:05 pm Reply with quote

I'm not really sure what to tell you, hinksta, other than that I don't see many websites using fonts and sizes different than those defined in their themes. As you correctly guessed, I don't have time to teach CSS and probably couldn't even if I did have time.

I will tell you that generally CSS classes are applied with class attributes in A, DIV, SPAN, TABLE, TD, TR, etc. tags, rather than as custom tags. I'm no expert on that, but I'd guess that might be an IE-specific thing, hence your results. Trying changing, for example:
Code:
<ed5>test</ed5> 

to:
Code:
<span class="ed5">test</span> 


As for seeing images, you are welcome to use the full URL to specify the image, and you'll be able to see it both in the editor and after posting.

I'm not sure what you meant by the source formatting not being stable.

I've only made one change to nukeWYSIWYG that isn't in the RavenNuke76 distro, and that is an additional function in mainfile.php to support modules (none of which are included in RavenNuke) that use a template approach (building HTML in a variable for displaying later), rather than displaying the content / editor where it is created.
 
kguske







PostPosted: Sat Jan 21, 2006 9:06 pm Reply with quote

Sorry, I misread your comment about something working with Firefox, not IE. The result is still the same...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©