Drake CMS Official Forums - read-only archive

You are reading the Drake CMS Official Forums archive, available for historical purposes only.

Drake CMS has been rebranded into Lanius CMS, visit the new Lanius CMS Official Forums if you need support about Lanius CMS or Drake CMS -> Lanius CMS migration.



Home page General discussion > A small wish regarding tinyMCE editor Permanent link to this page
 
 
Author Message:
hbryant
A small wish regarding tinyMCE editor
11 May 2007 01:42
Anonymous I have worked with tinyMCE before and I like it a lot smile

One thing that would be nice would be to be able to decide which tinyMCE plugins to load without having to edit drakecms/editor/tiny_mce2/editor.php

I don't mind editing editor.php, but it makes upgrading Drake a little more work.

It takes a long time to load all the tinyMCE plugins even on my local machine and it seems unnecessary since I will not use many of the plugins.

Also, like I said, I have worked a lot with TinyMCE, and many other javascript rich text editors. Although TinyMCE is the best one in my opinion, it is still does not make perfect code, especially when someone who does not know HTML tries to make massive edits on a long article. The code gets bloated to a ridiculous size and the user eventually calls me and complains that he can no longer edit his page! The best way I have found to minimize this problem is to severely limit what the user can do with TinyMCE (or any other javascript rich text editor).

Also, the "browse" button in the "insert/edit" image dialog box doesn't seem to do anything. When I click it, the text "someurl.htm" gets inserted in the image url box and that's it.

Also, the last button in the toolbar(it looks like a yellow rectangle with a little black triangle beside it) seems to be broken. I can't tell you which button it is because the tooltip just says "{$lang_imanager_desc}"
 
trex1512
Re : A small wish regarding tinyMCE editor
11 May 2007 09:34
Anonymous Hi

The missing button is the image manager plugin...error flagged for attention..

Re your other suggestion, the old TinyMCE as distinct from TinyMCE2 is also included in the current distribution, I don't know for how much longer, it may be worthwhile looking at it as it is configured with a lot less.

Thanks
 
legolas558
Re : A small wish regarding tinyMCE editor
16 May 2007 00:07
Anonymous Quote:

I have worked with tinyMCE before and I like it a lot smile

We too smile
Quote:

One thing that would be nice would be to be able to decide which tinyMCE plugins to load without having to edit drakecms/editor/tiny_mce2/editor.php

I don't mind editing editor.php, but it makes upgrading Drake a little more work.

It takes a long time to load all the tinyMCE plugins even on my local machine and it seems unnecessary since I will not use many of the plugins.

Pleeease, tell us what to leave apart! tinyMCE2 is about 1.2 MB while the old tinyMCE was 160 KB (if I remember correctly).

If you can provide us a modified version of tinyMCE2 which loads only the core plugins (in the style of the old tinyMCE) we will use it in the next release.

Quote:

Also, like I said, I have worked a lot with TinyMCE, and many other javascript rich text editors. Although TinyMCE is the best one in my opinion, it is still does not make perfect code, especially when someone who does not know HTML tries to make massive edits on a long article. The code gets bloated to a ridiculous size and the user eventually calls me and complains that he can no longer edit his page! The best way I have found to minimize this problem is to severely limit what the user can do with TinyMCE (or any other javascript rich text editor).


We need your experience. Please tell us how to make it more usable; I am definitively for disabling the unnecessary stuff.

Quote:

Also, the "browse" button in the "insert/edit" image dialog box doesn't seem to do anything. When I click it, the text "someurl.htm" gets inserted in the image url box and that's it.

Sorry, the browser integration part is not yet written. Yet another thing to do sad
Quote:

Also, the last button in the toolbar(it looks like a yellow rectangle with a little black triangle beside it) seems to be broken. I can't tell you which button it is because the tooltip just says "{$lang_imanager_desc}"

@trex1512: can you please handle this?
 
hbryant
Re : A small wish regarding tinyMCE editor
16 May 2007 06:06
Anonymous Hi,

I'm piecing together something that's at least "kind of" portable. I'm including a custom image select dialog and page/file select dialog(for the 'insert/edit link' button), that may or may not be useful. I was still learning php when I first wrote those so the code is not optimized as well as it could be. Hopefully I will have it packaged up by tomorrow. I can't add attachments to this forum and I don't have svn installed on this computer and I have never used cvs before. How should I send you the zip file?
 
legolas558
Re : A small wish regarding tinyMCE editor
16 May 2007 06:21
Anonymous Quote:

Hi,

I'm piecing together something that's at least "kind of" portable. I'm including a custom image select dialog and page/file select dialog(for the 'insert/edit link' button), that may or may not be useful. I was still learning php when I first wrote those so the code is not optimized as well as it could be. Hopefully I will have it packaged up by tomorrow. I can't add attachments to this forum and I don't have svn installed on this computer and I have never used cvs before. How should I send you the zip file?


About the page/file select dialog: you'd have to use the Drake CMS API..I'd suggest you not to spend too much time on that since your work might not be introduced in the core if it does not comply to our planned feature.

About the minimized tinyMCE2 editor package: please submit an item to our patches tracker (you can also add attachments there); if you do not want other people to see the item, mark it as private and only the project admins (me, trex1512 and rsavarese) will be able to see it.

Thank you very much! cheerful
 
hbryant
Re : A small wish regarding tinyMCE editor
17 May 2007 12:35
Anonymous Hi,

I finally got my stripped down version of TinyMCE2 together. I took out my custom image picker and link picker because they were not written with the Drake API and you have probably written something better anyway.

I tried to upload the file to the tracker, but I got an error:
Uploaded file must be >20 and <256000 bytes.

The file I'm trying to upload is 269KB, so I guess I can't upload it to SF.

Is there somewhere else I can send it?
 
legolas558
Re : A small wish regarding tinyMCE editor
17 May 2007 13:53
Anonymous Quote:

Hi,

I finally got my stripped down version of TinyMCE2 together. I took out my custom image picker and link picker because they were not written with the Drake API and you have probably written something better anyway.


Not yet, but will of course; the purpose is not to offer security vulnerabilities through those plugins.
And, definitively, image uploading will be editor-independent.

Quote:

I tried to upload the file to the tracker, but I got an error:
Uploaded file must be >20 and <256000 bytes.

The file I'm trying to upload is 269KB, so I guess I can't upload it to SF.

You'd have to split it into two chunks, if you are able to

Quote:

Is there somewhere else I can send it?

I will privately tell you my email address
 
legolas558
Re : A small wish regarding tinyMCE editor
17 May 2007 21:07
Anonymous cheerfulGood news hbryant, I have reviewed the edited tinyMCE2 you sent me and since I think it is better and does not remove important plugins I have merged it to the trunk.

The old tinyMCE (version 1) will be removed in v0.4.2

One further question: do you know if it is possible to disable the "Path" on the statusbar? If it gets anyway parsed maybe it would be better to leave it there, but I am wondering if we can save some computation hiding it...

Thank you
 
legolas558
Re : A small wish regarding tinyMCE editor
17 May 2007 21:11
Anonymous Do you know if it is possible to have an image insertion wizard like the one in the old tinyMCE?

And, when you will have time, please review the other editors available through SVN at:

http://drakecms.svn.sourceforge.net/viewvc/drakecms/blake/edito r/

There is FCKeditor (latest version), full tinyMCE2 and now also the old tinyMCE (which will also be released separately for those who need it)
 
websith
Re : A small wish regarding tinyMCE editor
30 May 2007 17:54
Anonymous Hello Drakers

Am testing Drake at the moment.

I think the images browse and select facility is really important as finding the correct url for images is a real pain.

Pleez pleez pleez could you look at this sooner rather than later boys.


thanx heaps

websith

 
legolas558
Re : A small wish regarding tinyMCE editor
30 May 2007 18:37
Anonymous Quote:

I think the images browse and select facility is really important as finding the correct url for images is a real pain.

Pleez pleez pleez could you look at this sooner rather than later boys.


It is planned for v0.4.3 - I know how annoying it is... sadHowever, coming soon!
 
Top