new WYSIWYG-Editor event Plugin: CKEDITOR!

Creating and modifying plugins.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by yellowled »

ICE wrote:

Code: Select all

@media only screen and (min-width: 768px)
.configuration_group .form_select select, .configuration_group .form_multiselect select, .configuration_group .form_field input, .configuration_group .form_area textarea, #uploadform .form_select select, #uploadform .form_field input {
  max-width: 48%;
}
If put max-width to 100%, the sourcecode view is fine ...
Please do not reset this to 100% globally. If this solves an issue with the CK Editor for the HTML nugget, it needs a specific exception just for that. Resetting it globally would break the backend layout.

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

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

This is already fixed in S9y 2.0.2 since March, so you either need to add this to your templates/2k11/admin/style.css https://github.com/s9y/Serendipity/blob ... e.css#L793

or copy it all https://raw.githubusercontent.com/s9y/S ... /style.css
I think this should do too. It is a Firefox only issue.

Thanks for noting.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ICE
Regular
Posts: 240
Joined: Tue Jun 28, 2005 11:15 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by ICE »

Timbalu wrote:I think this should do too. It is a Firefox only issue.
Thanks for noting.
No it's not, I'm a 99% Chrome User...
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

Did you test this?
I have several Serendipity 2.0.1 +patch, or 2.0.2, or 2.1.0-dev installation blogs and checked this with a core or plugin ckeditor in Chrome and there isn't any issue left, regarding .cke_source.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ICE
Regular
Posts: 240
Joined: Tue Jun 28, 2005 11:15 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by ICE »

There is no 2.0.2: http://www.s9y.org/12.html
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

There is! ;-) Not yet released, though. It's in the 2.0 branch. See my linked style.css links. If you are in master this is the cutting edge 2.1.0-dev repository.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

Ops sorry, I did not read you were talking about the html nugget plugin textarea only. This is true! Here Chrome has this issue too.
So instead of

Code: Select all

@-moz-document url-prefix() {
  textarea.cke_source,
  .configuration_group .form_area textarea.cke_source { white-space: pre-wrap; max-width: 100%; }
}
use

Code: Select all

textarea.cke_source,
.configuration_group .form_area textarea.cke_source { white-space: pre-wrap; max-width: 100%; }
only.
Thanks.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ICE
Regular
Posts: 240
Joined: Tue Jun 28, 2005 11:15 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by ICE »

Next bug, but it is ckeditor related. Ckeditor removes every syntax for awesome fonts, e.g.:

Code: Select all

<i class="fa fa-camera-retro"></i>
advanced content filter is off!
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

Hey, this isn't a general HTML Page editor. It is used by Serendipity to support a good Wysiwyg-Editor converting html markup for entries. :)

Other CKE related questions are to be taken to stackoverflow http://stackoverflow.com/questions/tagged/ckeditor and can be returned here as information bits for others.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ICE
Regular
Posts: 240
Joined: Tue Jun 28, 2005 11:15 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by ICE »

I know, i know ... :-)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

https://github.com/s9y/Serendipity/blob ... fig.js#L67
what about adding

Code: Select all

i(*);
? elements [attributes]{styles}(classes)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ICE
Regular
Posts: 240
Joined: Tue Jun 28, 2005 11:15 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by ICE »

:D yeah, party on! :mrgreen: not update safe ... but great!
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

If you read through that file you will find a way to make your own upgrade safe copy.

Oh and that reminds me to add span[*]{*}(*); for s9y 2.0.2 too.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
ICE
Regular
Posts: 240
Joined: Tue Jun 28, 2005 11:15 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by ICE »

Okay, thanks, i am here on my cellphone ... I'll read it later.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: new WYSIWYG-Editor event Plugin: CKEDITOR!

Post by Timbalu »

  • 4.8.0:
    -----
  • Upgrade to CKEDITOR 4.4 Series, update 8 (http://ckeditor.com/whatsnew)
  • IE css fix for option re-enable cke built-in image toolbar button
  • Add allow <span*> tag to extraAllowedContent
  • Set autoParagrah to false, to not set wrapping P tags to the extraAllowedContent
    content tags, when switching the editor mode or saving.
Regards,
Ian

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