List Info

Thread: On going problem with fonts




On going problem with fonts
country flaguser name
Netherlands
2007-04-06 02:08:18
Hi,

We use campsite in an environment where journalism students
work for a
news website for two weeks. So every two weeks the group of
people
working with campsite changes to new people with no campsite
experience.
The main problem we always have is the fonts generated by
the editors.
While we have defined Verdana to be the main font in our
css, and the
editors are not able to set the fonts in the Xinha editor,
still most of
the time the font switches to Times New Roman. I know this
can be solved
by not pasting text from MS Word with ctrl+v but with the
paste button.
But many times the font switches to Times when you only
change a word or
put a return between lines. 

As a teacher i have to tell them over and over again how to
fix the
problem by selecting the text and pasting it again in the
Xinha editor.
But this takes too much of my time and energy that i am
wondering if
there isn't a way of switching of the font-setting by Xinha
completely. 

Can there be an option in the backend settings that makes
sure that
Xinha doesn't set fonts at all?

If that can't be done, is there a way i can hack the code
and do it that
way?

Regards,

Jeroen


Re: On going problem with fonts
user name
2007-04-11 14:09:49
Hi Jeroen,

You may want to start from the file editor_load_xinha.php from the implementation/management/priv/articles directory inside the Campsite sources. There you can configure xinha but I don't know how to specify the default font. You may find the clue in implementation/management/javascript/xinha/htmlarea.js

Regards,
Mugur

On 4/6/07, Jeroen van de Nieuwenhof < listsvandenieuwenhof.nl">listsvandenieuwenhof.nl&gt; wrote:
Hi,

We use campsite in an environment where journalism students work for a
news website for two weeks. So every two weeks the group of people
working with campsite changes to new people with no campsite experience.
The main problem we always have is the fonts generated by the editors.
While we have defined Verdana to be the main font in our css, and the
editors are not able to set the fonts in the Xinha editor, still most of
the time the font switches to Times New Roman. I know this can be solved
by not pasting text from MS Word with ctrl+v but with the paste button.
But many times the font switches to Times when you only change a word or
put a return between lines.

As a teacher i have to tell them over and over again how to fix the
problem by selecting the text and pasting it again in the Xinha editor.
But this takes too much of my time and energy that i am wondering if
there isn't a way of switching of the font-setting by Xinha completely.

Can there be an option in the backend settings that makes sure that
Xinha doesn't set fonts at all?

If that can't be done, is there a way i can hack the code and do it that
way?

Regards,

Jeroen


Re: On going problem with fonts
user name
2007-04-11 22:58:23
hi Jeroen !

you can change the xinha default font just by editing a
Campsite file:

1- go inside to your www-common directory

2- open the stylesheet file:
vim priv/articles/article_stylesheet.css

3- add the following lines at the very beggining:

body {
  font-family: Verdana;
  font-size: 9pt;
}

well, this is just an example, set the values you want.

4- enjoy and relax!

do not worry about the "body" statement, you are
not going to change
the style for your entire page, it is just a trick for xinha
 ;)

regards,


On 4/11/07, Mugur Rus <mugur.rusgmail.com> wrote:
> Hi Jeroen,
>
> You may want to start from the file
editor_load_xinha.php from the
> implementation/management/priv/articles directory
inside
> the Campsite sources. There you can configure xinha but
I don't know how to
> specify the default font. You may find the clue in
> implementation/management/javascript/xinha/htmlarea.js
>
> Regards,
> Mugur
>
>
> On 4/6/07, Jeroen van de Nieuwenhof <listsvandenieuwenhof.nl> wrote:
> > Hi,
> >
> > We use campsite in an environment where journalism
students work for a
> > news website for two weeks. So every two weeks the
group of people
> > working with campsite changes to new people with
no campsite experience.
> > The main problem we always have is the fonts
generated by the editors.
> > While we have defined Verdana to be the main font
in our css, and the
> > editors are not able to set the fonts in the Xinha
editor, still most of
> > the time the font switches to Times New Roman. I
know this can be solved
> > by not pasting text from MS Word with ctrl+v but
with the paste button.
> > But many times the font switches to Times when you
only change a word or
> > put a return between lines.
> >
> > As a teacher i have to tell them over and over
again how to fix the
> > problem by selecting the text and pasting it again
in the Xinha editor.
> > But this takes too much of my time and energy that
i am wondering if
> > there isn't a way of switching of the font-setting
by Xinha completely.
> >
> > Can there be an option in the backend settings
that makes sure that
> > Xinha doesn't set fonts at all?
> >
> > If that can't be done, is there a way i can hack
the code and do it that
> > way?
> >
> > Regards,
> >
> > Jeroen
> >
> >
>
>


-- 
/holman

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )