Well I’m pretty much done porting nawte to MooTools1.2… I still haven’t updated nawte’s main site, but the latest source can be grabbed at nawte’s git repository located at http://github.com/SilverTab/nawte/. If you are not familiar with git, you can just browse the source and grab it from there…
Besides 1.2 compatibility there’s also one small change. I merged the insertBefore and insertAfter functions to create the insert function which takes a where parameter (eighter before or after).
The site and the doc should get updated soon…
8 Comments
This is the greatest thing ever. I’ve been looking for something exactly like this for a long long time. Woohoo for 1.2 compatibility!
Thank you so much!
@brian: Glad you like it! :) Let me know if you have any suggestions/questions…!
this reminds me… I still have to update NAWTE’s main page… right now the latest version( 1.2 compatible) is only available at the github repo, I’m definitely slacking!…
thanks so much for this, its an excellent bit of script!
if I might be so bold as to suggest a direct link to this on the nawt page?
thanks again=]
Hey johnn! Thanks for the comment! Glad you find nawte useful! I did post a notification on NAWTE’s site about the new version as you mentioned! ;)
options: {
displatchChangeEvent: false,
changeEventDelay: 200,
interceptTabs: true
},
I think there is a typo here : definitely, the first option should be ‘dispatchChangeEvent’ and not ‘displatch…’.
Prasad.
I think in the add function of nawte 0.4 which is supposed to be 1.2 compatible, has injectInside function. Should that be changed. ?
itemlink.set(’html’, ” + name + ”);
itemlink.setProperties(args || {});
itemlink.inject(item, ‘bottom’);
item.injectInside(this.list);
How can I create multiple instances of the editor? I have a webpage with three forms. Each form has a textarea. I’d like to add an NAWTE editor to each textarea. I’ve tried but haven’t been able to get it to work properly. Can someone show me how to create multiple instances of NAWTE on the same page? Thanks!
One important feature is to allow actions to apply to an entire line of text (based on where the insertion point is). That feature would suit block level element changes like headings and lists, particularly in Textile/Markdown.