FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

deactivate TinyMCE?

 
Post new topic   Reply to topic    PyLucid - CMS - Forum Forum Index -> general
View previous topic :: View next topic  
Author Message
sepharim



Joined: 27 Dec 2007
Posts: 180
Location: Germany

PostPosted: Sun 24 Feb, 2008 23:02    Post subject: deactivate TinyMCE? Reply with quote

Hi everyone,

is it possible to deactivate TinyMCE. I searched little in the config files, but didn't find it. Perhaps it would be nice to create a new Markup field "NONE, no TinyMCE" wer TinyMCE isn't loaded.

Greeting Manuel
Back to top
View user's profile Send private message
jens
Administrator


Joined: 12 Oct 2005
Posts: 972
Location: duisburg, germany

PostPosted: Mon 25 Feb, 2008 09:04    Post subject: Reply with quote

No this it not possible, yet. You can deactivate TinyMCE completely, but you can't deactivate it on only a range of pages.

To deactivate TinyMCE you can edit the internal page "page admin.edit page". Change the JavaScript part from this:

Code:
function init_tinyMCE() {
    tinyMCE.init({
        apply_source_formatting : true,
...

to this:
Code:
function init_tinyMCE() {
    return;
    tinyMCE.init({
        apply_source_formatting : true,
...

(Not tested!)


I think a new Markup field for this Problem is a great idea!
_________________

http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
Back to top
View user's profile Send private message
jens
Administrator


Joined: 12 Oct 2005
Posts: 972
Location: duisburg, germany

PostPosted: Mon 25 Feb, 2008 17:42    Post subject: Reply with quote

I implement it Wink

http://trac.pylucid.net/changeset/1445

But it's a little bit ugly. We should not use this "hardcoded" markup table. But i don't know a better solution. Use a simple tuple for this?

EDIT: It would be cool if we add a generic API for JS-Editors...
_________________

http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
Back to top
View user's profile Send private message
sepharim



Joined: 27 Dec 2007
Posts: 180
Location: Germany

PostPosted: Tue 26 Feb, 2008 17:32    Post subject: Reply with quote

nice Wink

and thank you
Back to top
View user's profile Send private message
jens
Administrator


Joined: 12 Oct 2005
Posts: 972
Location: duisburg, germany

PostPosted: Tue 26 Feb, 2008 20:23    Post subject: Reply with quote

I'm thinking about to remove the Markup Table and use a simple choice tuple...
_________________

http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
Back to top
View user's profile Send private message
jens
Administrator


Joined: 12 Oct 2005
Posts: 972
Location: duisburg, germany

PostPosted: Thu 06 Mar, 2008 10:27    Post subject: Reply with quote

I have remove old database table here: http://trac.pylucid.net/changeset/1464
I had changed more things, than I thought. Hope that it works Wink
_________________

http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PyLucid - CMS - Forum Forum Index -> general All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

<< back to PyLucid CMS Homepage



Powered by phpBB © 2001, 2005 phpBB Group