Loading...
 

Tikiwiki-devel (mailman list mirror)


ckeditor customization

Hi guys,

I changed lib/ckeditor_tiki/tikistyles.js to add a style but there is no
difference in the wysiwyg edition :-(

I tried:
setup.sh → c
php console.php cache:clear --all

but it did not help.

What other caches do we have??

Cheers,
J-M

posts: 126257 United Kingdom

Hi Jean-Marc

It seems to work for me but only shows up for html mode wysiwyg pages. Note sure why, maybe it would work ok in wiki mode but someone disabled it... but the style would have to convert from html to wiki ok when you save for it to have any effect.

I just tried it here and it doesn't seem to work. I added

case 'Styles':

to \ToolbarCkOnly::getWysiwygWikiToken but couldn't get it to do anything useful, so won't commit - it might be possible to get it to cooperate with wysiwyg mode if you have time...

jonny



> On 24 Jun 2016, at 14:19, Jean-Marc Libs <jeanmarc.libs@gmail.com> wrote:
>
> Hi guys,
>
> I changed lib/ckeditor_tiki/tikistyles.js to add a style but there is no difference in the wysiwyg edition :-(
>
> I tried:
> setup.sh → c
> php console.php cache:clear --all
>
> but it did not help.
>
> What other caches do we have??
>
> Cheers,
> J-M
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape___
> TikiWiki-devel mailing list
> TikiWiki-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
TikiWiki-devel mailing list
TikiWiki-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

I found an explanation in
http://stackoverflow.com/questions/14940452/force-ckeditor-to-refresh-config

Now there's an explanation: "CKEDITOR force the browser to cache them."
So, the issue is mainly for us developpers; first time users have no
problem, and regular users will eventually see the new menu.


I'm toying with adding the following line in
lib/ckeditor_tiki/tikistyles.js just for the duration of testing:
CKEDITOR.timestamp= +new Date;

If it works, I'll put some explanatory comment in
lib/ckeditor_tiki/tikistyles.js so nobody else needs to spend hours on this.

Cheers,
J-M


On Sat, Jun 25, 2016 at 12:35 PM, Jonny Bradley <jonny@tiki.org> wrote:

> Hi Jean-Marc
>
> It seems to work for me but only shows up for html mode wysiwyg pages.
> Note sure why, maybe it would work ok in wiki mode but someone disabled
> it... but the style would have to convert from html to wiki ok when you
> save for it to have any effect.
>
> I just tried it here and it doesn't seem to work. I added
>
> case 'Styles':
>
> to \ToolbarCkOnly::getWysiwygWikiToken but couldn't get it to do anything
> useful, so won't commit - it might be possible to get it to cooperate with
> wysiwyg mode if you have time...
>
> jonny
>
>
>
> > On 24 Jun 2016, at 14:19, Jean-Marc Libs <jeanmarc.libs@gmail.com>
> wrote:
> >
> > Hi guys,
> >
> > I changed lib/ckeditor_tiki/tikistyles.js to add a style but there is
> no difference in the wysiwyg edition :-(
> >
> > I tried:
> > setup.sh → c
> > php console.php cache:clear --all
> >
> > but it did not help.
> >
> > What other caches do we have??
> >
> > Cheers,
> > J-M
> >
> ------------------------------------------------------------------------------
> > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> > Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> > present their vision of the future. This family event has something for
> > everyone, including kids. Get more information and register today.
> > http://sdm.link/attshape___
> > TikiWiki-devel mailing list
> > TikiWiki-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> TikiWiki-devel mailing list
> TikiWiki-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.