[v0.5] MooRTE - Textbox RTE / Inline WYSIWYG Editor

a place to post your own scripts

Moderator: 1.2 Moderators

Forum rules
  • Each Script may have only one thread per mayor release.
  • The owner of the thread should keep the first post up to date (newest version, demo...)
  • The title should include the version -> "[v0.1] Nice mooPlugin"
  • see also the detailed Rules

[v0.5] MooRTE - Textbox RTE / Inline WYSIWYG Editor

Postby SamGoody on Mon Feb 09, 2009 1:19 pm

NOTE: THIS IS THE CONTINUATION OF THE MOOINLINE PROJECT - we changed names a few months ago!

Textarea replacement / Rich text area with support for inline editing.


Aims to be as complete as TinyMCE, modular, half the size of MooEditable.
(Ok, its not quite there yet, but it is an early release. ;) )

1) Small (~400 lines),
2) Complete [working on whatever's missing, including a color picker and file upload],
3) Does not use iFrames - shorter, better.
4) Very, very extensible - creating buttons, toolbars, and more is very easy,
5) Multiple / Single editors on page. Option for one tooolbar for whole page, etc.
6) Complete inline support - and you don't lose all inherited styles when you begin editing.
7) Support for all major browsers except FF2.
8) Modular - only show/use the buttons that you want - or use the download builder.
9) Easily skinnable
10) Very easy to integrate into a CMS
11) Floating, fixed or in Dom, lots and lots of options!

More.

Buggy. Incomplete. Ugly as [insert the entertainer you hate here].
Looking to create some action - contribute code to become rich and famous (er, whatever).
Please comment, even criticism. (But be nice to me.)

Project Page: http://siteroller.net/projects/moorte/
Github Page: http://github.com/siteroller/moorte/
Last edited by SamGoody on Fri Sep 25, 2009 11:44 am, edited 3 times in total.
SamGoody
 
Posts: 5
Joined: Mon Feb 09, 2009 1:02 pm

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby bluff on Mon Feb 09, 2009 7:17 pm

I use tinyMCE and your script is a long way off to competing, I am looking for a mootools port to tinyMCE, but as this editor and others (like FCKEditor) have years of development behind them, It's a good start and I hope there will be a mootools port soon, or maybe not! (who wants to reinvent the wheel when there are plenty of working wheels already!).

Anyway a good start and hope your project becomes a serious contender in the WYSIWYG editor field.

more developers need to join this project for it to become succesful
:ugeek: http://www.shaunfreeman.co.uk - May the Bluff be with you.
Free your computer and be free with Ubuntu
User avatar
bluff
mootools enthusiast
 
Posts: 148
Joined: Tue Sep 23, 2008 6:00 pm
Location: UK

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby csuwldcat on Mon Feb 09, 2009 8:57 pm

Personally I love the simplicity here, it could use a bit of refinement as most things can.
csuwldcat
 
Posts: 16
Joined: Mon Sep 08, 2008 9:28 pm

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby csuwldcat on Mon Feb 09, 2009 9:01 pm

bluff wrote:I use tinyMCE and your script is a long way off to competing, I am looking for a mootools port to tinyMCE, but as this editor and others (like FCKEditor) have years of development behind them, It's a good start and I hope there will be a mootools port soon, or maybe not! (who wants to reinvent the wheel when there are plenty of working wheels already!).

Anyway a good start and hope your project becomes a serious contender in the WYSIWYG editor field.

more developers need to join this project for it to become succesful


Dude,

FuCK Editor and Tiny-but actually ridiculously bloated-MCE are both pretty old school. Check out Nicedit for more features:
http://www.nicedit.com/
csuwldcat
 
Posts: 16
Joined: Mon Sep 08, 2008 9:28 pm

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby horseweapon on Tue Feb 10, 2009 12:50 am

SamGoody wrote:7) Support for all major browsers except FF2.
That's very surprising, it's generally the browser on which everything thing works the best. Do you know why it does not work? I'm sure it can be fixed. I mean, if you got it to work in IE...
User avatar
horseweapon
mootools enthusiast
 
Posts: 393
Joined: Mon Aug 04, 2008 6:52 pm
Location: France

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby SamGoody on Tue Feb 10, 2009 10:52 am

Thanks all!

bluff wrote:...your script is a long way off to competing... others (like FCKEditor) have years of development behind them... It's a good start...

csuwldcat wrote:Personally I love the simplicity here

Thanks. I don't think that it will take that long to get up to matched functionality, but a task it is.

bluff wrote:who wants to reinvent the wheel when there are plenty of working wheels already!

To the best of my knowledge there are no similar wheels. Tractor wheels may work, but they are a little too bloated for most vehicles :)

Obviously, for most the draw is the size [incomparable], functionality [goal: FCK++ with a modular structure], and extensibility [the ability to add custom buttons without having to learn the code].

But the real difference is that this editor does not use an iFrame.
All others that I checked out, including NicEdit and MooEditable, hide the textarea/element and push an iFrame into its place. This was once essential, as Firefox2 does not support the conentEditable property, and no-one would drop support for Firefox2.
But it adds lots of unneeded logic and workarounds, especially as the browsers are promising less and less access between frames. And it means that the wysiwyg editor is not really part of the page, so it cannot reflect any inherited styles. And browsers have grown up since them.

horseweapon wrote:Do you know why it does not work [in FF2]?

See above. Firefox2 missed two VERY important features for a project like this: ContentEditable=on and display:inline-block. There is simply no way to add FF2 support without falling back into an iFrame, which for me is anathema. At some point perhaps we will add an option to use an iFrame whenever it picks up FF2, but there's a way to go before than.

On a personal note, csuwldcat - thanks for your help with MochaUI as well. Horseweapon - I have oft used your scripts. (Do they have an "admiration" smiley?)
Bluff, glad to meet you!

bluff wrote:Anyway a good start and hope your project becomes a serious contender in the WYSIWYG editor field.

Me too! :D

csuwldcat wrote:it could use a bit of refinement

bluff wrote:more developers need to join this project for it to become succesful

Hear, hear!! (How do I link to Balmer's dance?)
SamGoody
 
Posts: 5
Joined: Mon Feb 09, 2009 1:02 pm

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby X-trace on Tue Feb 10, 2009 4:47 pm

csuwldcat wrote:Dude,

FuCK Editor and Tiny-but actually ridiculously bloated-MCE are both pretty old school. Check out Nicedit for more features:
http://www.nicedit.com/


Dude,

NicEdit is working great, but is way behind in the possibilities.
User avatar
X-trace
mootools enthusiast
 
Posts: 399
Joined: Wed Jul 16, 2008 4:23 pm
Location: Groningen, NL

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby orefalo on Wed Feb 11, 2009 10:58 pm

I see two main trends in this thread:

On the one hand you've got the ones that need a rich editor
On the other hand you've got the ones that need a full featured editor (a la Word)

Either way, I see a lot of fragmentation in the mootool editor landscape: with tons of projects doing pretty much the same.
Some will argument that textareas are better then iFrames... I personaly favor browser compatibility over code complexity.

Bottom line, rather than forking 10's of projects around a rich editor written in mootools. Why don't you contribute to a well written one ?
size ? do you think there is a different between a 4kb and a 9kb file ?

-> http://github.com/cheeaun/mooeditable/tree/master

and if you don't like it, well.. just enhance it!

I think the last thing we need at this point is fragmentation....
orefalo
mootools connoisseurs
 
Posts: 39
Joined: Thu Jan 08, 2009 6:03 pm

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby SamGoody on Thu Feb 12, 2009 8:17 pm

orefalo wrote:I see two main trends in this thread:

On the one hand you've got the ones that need a rich editor
On the other hand you've got the ones that need a full featured editor (a la Word)


True.
The ideal would be a modular editor that can be easily customized to fit either user.
This tries to fulfill that ideal with a completely customizable button/toolbar set.
For now, there is no loss in having the extra buttons that aren't used as part of the codebase - they're just not that large.
Longer term on the todo list is a modular php/javascript page that will only serve the buttons that will be used by the editor.

orefalo wrote:Some will argument that textareas are better then iFrames... I personaly favor browser compatibility over code complexity.

The "browser compatibility" issue is only Firefox 2, which has an intelligent user base and is actively being phased out. While there is a need to be cross- browser, I think most will agree that there is a limit to how much bloat that needs to add. Especially as using an iFrame does not just create bloat, it limits the possibilities. [For example, there can only be true inline editing without an iFrame.]

orefalo wrote:Either way, I see a lot of fragmentation in the mootool editor landscape: with tons of projects doing pretty much the same.

Bottom line, rather than forking 10's of projects around a rich editor written in mootools. Why don't you contribute to a well written one ?
size ? do you think there is a different between a 4kb and a 9kb file ?

-> http://github.com/cheeaun/mooeditable/tree/master

I think the last thing we need at this point is fragmentation....


Why do I feel like I'm being attacked?

I know of at least five forks to the MooEditable project - GGedit, Your's, Ryan's, and two others that I would have to search for the names of. Far as I can tell, all but Ryan's [with your input] have been abandoned. (And, yes, its a fork, even if it is in the same gitHub account)

I am not looking for the MooInline project to have forks at all. In the best scenario, you, Ryan, and the others would be core developers of this project. More on this in a minute.

There are two reasons I didn't just extend MooEditable:
1. I tried and was rejected.
If you follow the threads there, I offered significant enhancements and code [including that you should set 'unselecteble' to 'on']. I offered an image uploader, complete with loading bar and more. They were all rejected.
This makes sense. Cheeaun (who I have the greatest respect for) wanted to write a simple editor within certain guidelines. I wanted something else. So do you and Ryan, for that matter, which is why you are in a branch (read: created a fork) instead of a core developer with Cheeaun.

2. This is something else entirely.
This editor is also well written, and it is much more extensible than Cheeaun's. It has a structure for flyout and regular toolbars. It supports inline editing.

Ryan just posted how he needs one toolbar for a number of elements - that has been a default option since day one. He is writing a CMS - this is much more targeted at CMSs. And it is much smaller - days have been spent on simplifying and minifying. It supports inherited styles. And more. (I do not know if Ryan has even seen this thread yet.)

I can't just extend MooEditable. I have an entirely different beast.

Perhaps, though, you can help in this project, and limit the field to two instead of four. [We desperately need a designer, as I am sure you noticed].

Cheeaun's is better for those who need Firefox 2 (for some reason he has no support for Safari 2), and who want a simple subset of keys. The entire body of his editor is written around those particular buttons.
This is better for those that are willing to sacrifice FF2 for a more flexible and open editor. (As time goes by, that will shift forward.)

Working with me in no way restricts your continuing your own, or Ryan's, or helping Cheeaun. But please consider it, as I believe it is in all of our interests.
SamGoody
 
Posts: 5
Joined: Mon Feb 09, 2009 1:02 pm

Re: [v0.16] MooInline - Textbox RTE / Inline WYSIWYG Editor

Postby ryanmitchell on Thu Feb 12, 2009 9:53 pm

Interesting... very interesting.
I know what you are saying about mooeditable - I really want to help it move forward, but its hard to get changes in... I think its worth considering the option of forking it, and making a fully featured editor... using the core cheeaun wants as a base, and extending it ... some of what you've done here is great, but we can get the best of both worlds in a fork...
What do you think sam and orefalo? With 3 of us hammering at something we could get it up and running pretty quick.

Ryan
ryanmitchell
 
Posts: 3
Joined: Thu Feb 12, 2009 9:50 pm

Next

Return to Your Scripts

Who is online

Users browsing this forum: No registered users and 3 guests