General problem with Editor

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

General problem with Editor

Post by nuTux »

Hi community

I'm running serendipity 1.7, without any additional plugins, I had this very basic editor possibilitys (blue buttons) to edit my entrys, but this was not very satisfiyng..

So I installed FCKEditor, first it was not working, then I removed it again and then it suddenly worked!?
But it wasn't any more in the Plugin list..

So I wrote some articles with it... Most of it worked out, but Justifying the text, or centering Image didn't worked

As you can see here


Then I thought ok, lets try TinyMCE, after some troubles seeing it in spartacus it appeared. I installed it according to the description.
But no I can't see an editor at all...not even the blue buttons... :(

Any idea what it could be??
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

Hi

A div justify is not working, since the following p has a text-align: left in serendpity css, which overwrites the div settings. You can make the div work, if you do text-align: justify !important; or put the justify inside the p tags.

For the other, did you deinstall or hide and save fck in your plugin list, before trying to enable MCE? Maybe you had the default core Xinha appear? It may also be that you need to force the browser to reload hard by Ctrl-R-F5, to see the real changes. This might also be an issue with the Autosave plugin, which does not work with wysiwyg-editors. Remove that as well.

I would recommend to deinstall all other wysiwyg editor plugins and then install the new CKEDITOR plugin.
See http://board.s9y.org/viewtopic.php?f=4&t=19354
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: General problem with Editor

Post by nuTux »

Ok, the thing with the tags is, that the editor did this...

Anyway, I deinstalled all the wysiwyg editor and wanted to installid like your post said, but again
there are no editors in spartacus available... not at all??

and if I check for new packages, there are also no new ones??

Do I need certain plugins to install the fckeditor??

Regards
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

Please have a look into the spartacus plugin config, and temporary change the xml and dowloadserver Mirrors (Normally this is netmirror as default, but in cases of failures, you can change to others...).

This will get you a new xml file, which Spartacus can now read in your plugin management. There you can press the event file (button symbol: blue diskette with green arrow) installation link (further down) to get you all available plugins to install, in there proceed to the Backend Editor Filter.

Checking for new (updated) plugn packages (on top of the Plugin Management Page) will also depend on this xml file.

To install fckeditor, you need to manually fetch the fckeditor files, like the plugin config describes, else the plugin can't work. As far as I know, the only wysiwyg-editors which work right out of the box, are Serendipitys core delivered Xinha and the new CKEditor Plugin.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: General problem with Editor

Post by nuTux »

Ok out of the box sounds nice, so I think I'll go for CKEditor.

I changed in the spartacus XML settings from nettmirror, to s9y.org.

Saved (twice, to go sure)

Loaded the Show all available plugins (also twice) but I still can't see a (CK)Editor at all!?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

I can not imagine why you can't see the filter Backend Editor section (with CKEDITOR as third plugin).
Can you please show me, by screenshoot, where you don't see it, so I know we are talking about the same thing. (*)

Btw, you are not talking about writing a new entry and do not see any wysiwyg-editor, are you. In that case you might not have enabled the Backend/Personal Configuration - wysiwyg option.

(*) We are talking about the event plugin section! In sidebar plugins (this is for frontend sidebar only) you will not find any editors.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: General problem with Editor

Post by nuTux »

Phu busy weekend

So, now I'm seriously confused...

I can now see the standrad XINA editor:
Image

As you can see, it displays the Text justyfied, but on the actual website, it doesn't...
Image

The thing with the editor is this:
It doesnt show me the Categotrie Backend: Editor
as you see here
Image
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

You did not read my "(*)" post!!! :)

You are trying to look for a backend event plugin in the sidebar frontend plugin list!
In Serendipity Plugins there is a big difference between event and sidebar plugins. The latter ones are most commonly additions to hook something into the frontpage sidebar only. Some do not even need an event plugin to do this. So the main place to look for (if you do not want something frontend sidebar specific) is in most cases the downscrolled Ereignis-Plugins: "Hier klicken, um Ereignis-Plugin zu installieren" link.

About the justification I told you where and why this happens. If CKEDITOR still relies on this issue (please check, as this might be definitely better **), you have to change the bulletproof style.css file. This is where

Code: Select all

/*** General styles ***/
p {
    text-align: left;
}
is generated. You can change this by /*text-align: left;*/ (which might not be a good idea) or add an

Code: Select all

.entry-content.serendipity_entry_body div[style] p {
    text-align: justify;
}
to the end, or put this inside a user.css file, which then has to get enabled by you in the themes config.


(**) Using WYSIWYG-Editors can make existing frameworks need to change on some edges. like in this justify case. This is one of the reasons, why CKEDITOR does not not allow this kind of manipulation by defaults standard package and seems somehow restricted. You can still do it and change something manually in the Sourcecode view though. Or even install the http://ckeditor.com/addon/justify plugin to ckeditor for this. BUT - If you need to justify text in every blog posts, it is preferable to just enable this in your themes style or user.css file.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: General problem with Editor

Post by nuTux »

Yes you're right, I didn't read it correctly or misunderstand it...
It was very confusing that "the same" link was at the top and the bottom end... just differing by one word :?

So I succesfully installed now CKEditor.

And I changed in styles.css (from bulletproof template) the line with the p Tag

But it doesn't show the Text justify, if I inspect the element, it shows still the
p Tag with left as attribut... It tells me thats in serendipity.css, but this is the file where the template css Files are getting included??
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

The file serendipity.css does not exist. It just automatically gathers some styles by installed plugins, the default fallback rules (from the default/style_fallback.css template) and of the standard (default) template (which is bulletproof).

Code: Select all

/* templates/bulletproof/style.css  */
/**********************************************************************/
/* Template: bulletproof for Serendipity (http://www.s9y.org)         */
/* Authors: Matthias Mees, David Cummins and Don Chambers             */
/*                                                                    */
/* Central Stylesheet                                                 */
/*                                                                    */
/* http://s9y-bulletproof.com                                         */
/**********************************************************************/


body {
    font: 100.01% Verdana, Arial, Helvetica, sans-serif;
    background: #fff;
    color: #000;
}

/*** General styles ***/
p {
    text-align: left;
}
So it seems you did not change the right file (style.css).

I would still recommend to use an enabled user.css file for this to not loose your changes on upgrades.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: General problem with Editor

Post by nuTux »

I'm pretty sure I changed the right file...
I know that the serendipity.css doesn't exist its called serendipity.css.php, and there are all the styles getting included...

So I changed bulletproof/styles.css and added the user.css with your code and activated the user.css option in the template. I copied the user.css into the bulletproof folder.

But still there is no justifing at all...
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

But now you have changed the entries sourcecode, which now looks like

Code: Select all

<div>
    <div>
        <p>Ich weiss nicht wie es ...e Route ist entstanden.</p>
    </div>
...
So the rule for the user.css has now to be

Code: Select all

.entry-content.serendipity_entry_body > div p {
    text-align: justify;
}
You also have at line ~ 35 of blue_style.css

Code: Select all

#wrapper {
    font-family: verdana,arial,helvetica,sans-serif;
    font-size: 69%;
}
which downsizes the default font size of 80%. You'll need to adjust that too.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
nuTux
Regular
Posts: 21
Joined: Sat Jun 08, 2013 11:35 pm

Re: General problem with Editor

Post by nuTux »

Ok so I think I solved it, I changed the user.css to the following:

Code: Select all

.entry-content.serendipity_entry_body p {
    text-align: justify;
    font-size:	140%;
}

.entry-content.serendipity_entry_body ul {
    font-size:	140%;
}
Now it works without changing to <div> in the Text
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: General problem with Editor

Post by Timbalu »

Yeah fine. Now you are on your way.
You'll boulder through the extending capabilities Serendipity is offering, through the years.
You will also learn to extend and finetune the user.css file a lot more, as finding out. Have fun!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply