TinyMCE settings in themes.

Re: TinyMCE settings in themes.

by Richard Oelmann -
Number of replies: 7
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi David,

Following up from Mauno's post, the PDW Toggle Toolbars plugin is available (with demos) at http://sourceforge.net/tracker/?func=detail&aid=2904683&group_id=103281&atid=738747 and this functionality looks as if it pretty much does what you were looking for - I know I'm going to look carefully at it for my upgrade to 2.5 in the summer instead of the core tinyMCE init changes I had previously smile

And with the info Mauno has given previously about being able to set up tinymce init in the html/php of the page (therefore in the layout files of the theme), it seems like Gareth's query about controlling TinyMCE through the theme is answered too.

I would imagine also that if the tinyMCE init can be controlled via the layout file, we could also use theme settings pages to control options for that init section.

Many thanks Mauno, I think the rest of us had (small) parts of the answers but you have provided the glue to stick it all together! :D

Richard

In reply to Richard Oelmann

Re: TinyMCE settings in themes.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi all,

First of all, thank you for your input on this.

It is with regret that I am no longer persuing this as a means of making MyMobile better as I found out this morning that it is being droppped in core in favour of the Bootstap theme (I suspect without jQuery).  I was working hard with Mary Evans to make improvements across the board to the theme such that it was useable and had made significant progress.  We had identified quite a few changes and lined up many fixes.

You may have already noticed moves to the same effect if you attempt to view this forum from a mobile / iPod Touch.

Kind regards,

Gareth

In reply to Gareth J Barnard

Re: TinyMCE settings in themes.

by John St -

That's a bummer, I did not know this. Thanks for all your work on this (and Mary's). You're always patient and helpful.

If you guys can send me what you have, I will integrate it with my latest updates. I plan to support and upgrade this as I know a ton of people that use it. 

In reply to John St

Re: TinyMCE settings in themes.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear John,

No worries.  And can I say publically here a thank you to you for your support with MyMobile as I know I have asked and received on many occasions.

What I have is on Moodle Tracker already pending integration, bar the YUI Module thing that Andrew Nicols helped me with, please see the rampent discussions on jQuery in the tracker for this.  I was going to have this in core to ring fence jQuery but it was asking on the developer chat that sparked the revelation.

I now have a fully integrated Collapsed Topics add-on for MyMobile that took me three days to write and a few more to perfect.  Hence 'gutted' as people had been asking me for ages for it.  Plus a font and theme colour changer using bxslider with a new bespoke admin setting class - another two weeks.  But it uses jQuery, so will never get into core.

I've learnt a lot about the theme, jQuery and JQueryMobile in the process which I hope will be useful in other projects.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: TinyMCE settings in themes.

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Gareth,

Can you point us at any discussion about this, as my understanding is that the bootstrap theme hasn't made it to peer review yet (although its on the way) and when it is, then intention is for it to be a 'canvas' like theme for others to build on. Is there another mobile specific bootstrap theme in development or is this based around the one in the Tracker MDL-38016 ?

I would have hoped that no decision has been made to drop MyMobile until such time as there is a completely ready replacement for it. But maybe I have missed something somewhere?

Richard

In reply to Richard Oelmann

Re: TinyMCE settings in themes.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear Richard,

As far as I'm aware from the developer chat, bootstrap will replace MyMobile - in what form I don't know.  But it was said that it would replace it when it's ready which makes me wonder why the forums have already had jQuery / jQueryMobile taken out - hence the poor rendering.  I had almost got a temporary good TinyMCE editor working for the posting in forum issue - this discussion.  I was also working on a number of improvements with Mary Evans and had a YUI wrapper lined up (thanks to Andrew Nicols) to ring fence jQuery within core.

To be honest, looking to the future, what exactly will survive who knows.  jQueryMobile my die, but then it is community supported.  Yahoo may go into receivership - but looking at their stock levels, probably not.  However with all the developments in mobiles, HTML5, embedded Java and the increase in true distrubuted technologies different things will be better and push developments in new directions.

My view is always to take the best of what is on offer, integrate it and provide the best user experience.  As Frank Herbert once wrote 'fear is the mind killer'.

Cheers,

Gareth

In reply to Richard Oelmann

Re: TinyMCE settings in themes.

by David Scotson -
The theme currently set for mobiles on moodle.org doesn't seem to be related to the work being done in MDL-38016.

It looks like it's based mostly on the MyMobile theme, going by the HTML and CSS, but there was some discussion that someone had been tasked with creating a Bootstrap-based theme for Moodle.org as they commented on a bug I submitted, but I can't remember who it was though.
In reply to David Scotson

Re: TinyMCE settings in themes.

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Dear David,

The theme for mobiles on moodle.org is currenty MyMobile but with the jQuery taken out such that it does not render.  I was informed that the Bootstrap theme will replace MyMobile in core when it is finished.  I was also informed not to spend any more time on MyMobile bar what was to be integrated and not to work on a YUI Mobile version.

Cheers,

Gareth