Adam Kiss Posted December 2, 2012 Share Posted December 2, 2012 Do you hate dislike TinyMCE and heart Markdown? Or Textile? Or HTML? Do you wish there was better way to create content than textarea? Well there is! Content creation oriented, syntax highlighted and easy on the eyes, that is this new plugin I made. And I know you'll love it! And did I mention it supports HTML, Markdown and Textile? Download/fork/star here: GitHub PW Modules Your local modules manager Features Syntax highlight your text, for easier preparation of content Nice light, readable theme Supports Textile, Markdown & HTML Auto selects mode, based on field's textformatters (last found is used) Works with multiple fields on page, each with different settings Features inspired by iA writer Blue Cursor Focus mode We are still kind-of in beta, so please, test your browsers and let me know… Thank you! <3 PW 16 Link to comment Share on other sites More sharing options...
diogo Posted December 2, 2012 Share Posted December 2, 2012 I can't try it right now, but will have it a go as soon as i can. You should have more weekends like this one Link to comment Share on other sites More sharing options...
Nico Knoll Posted December 2, 2012 Share Posted December 2, 2012 Won't work for me. I just can't write into it... (OS X 10.8 / Chrome) Link to comment Share on other sites More sharing options...
Nico Knoll Posted December 2, 2012 Share Posted December 2, 2012 Wow, updated PW and now it's running! And it's awesome! 1 Link to comment Share on other sites More sharing options...
Nico Knoll Posted December 2, 2012 Share Posted December 2, 2012 Maybe you should add something like this: public function ___install() { if(ProcessWire::versionMajor == 2 && ProcessWire::versionMinor < 2) { throw new WireException("This module requires ProcessWire 2.2 or newer"); } } Btw.: My template editor module now requires your Inputfield Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 2, 2012 Author Share Posted December 2, 2012 But this module doesn't have support for PHP?! I'll add it later then 1 Link to comment Share on other sites More sharing options...
Nico Knoll Posted December 2, 2012 Share Posted December 2, 2012 PHP looks good in it though. Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 2, 2012 Author Share Posted December 2, 2012 v0.9.7 released - I added version check (it's easier than making it work on old PW installs ) 1 Link to comment Share on other sites More sharing options...
ryan Posted December 2, 2012 Share Posted December 2, 2012 Nice job Adam!! Please add this to the modules directory when you get the chance. Also, I suggest removing the "permanent=true" from your getModuleInfo() because otherwise it is uninstallable. Link to comment Share on other sites More sharing options...
arjen Posted December 3, 2012 Share Posted December 3, 2012 Great work Adam! You should apply the 1.0 release of the modules on the Projects Using ACE page. Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 5, 2012 Author Share Posted December 5, 2012 Hey all! Finished 1.0 version! Updates for version 1.0 [add] Added Textile mode, with huge number of enhancements [add] Added auto mode select (yes!) [add] Added PHP mode, even though there are no means to invoke that yet [enh] Enhanced quote rendering in markdown [enh] Added many styles (sup,sub,cite,code,ins,del,…) [fix] Fixed the default values (and saving the default values) [cng] Show invisibles is off as default Note: Still testing in various browser Please, let me know on github, what works and what doesn't. Thank you! 5 Link to comment Share on other sites More sharing options...
Soma Posted December 5, 2012 Share Posted December 5, 2012 Great module! Thanks Adam for doing it, great job. 1. I enabled invis and everytime I save the page there's some chars appended in the editor like -> -> -> I use MD textformatter, and have use focus mode on. Not sure what's happening. 3. Also I get some warning when debug mode on in admin: "Notice: Trying to get property of non-object in /xxx/site/modules/InputfieldAceEditor/InputfieldAceEditor.module on line 125 Changing it to "if($field && $field->textformatters)" removes it. 2. Don't know if it's possible anway, but would be maybe nice if the "editor" area would be drag sizable in height like textareas. Keep up the good work. 1 Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 6, 2012 Author Share Posted December 6, 2012 1.) Hm, I'll have to look at this. That would mean there are some tabs appended? probably 2.) Textareas have the resizing system-forced… Use Rows in the config 3.) Thanks, I'll do it. Surprising that field doesn't know about itself, in your case? Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 9, 2012 Author Share Posted December 9, 2012 So, besides little bughunting, I was thinking what would be the best thing to provide. And, I decided to focus on content creators. Check this super-cool thing out (you might want to go to youtube to see HighRes ) 6 Link to comment Share on other sites More sharing options...
netcarver Posted December 9, 2012 Share Posted December 9, 2012 Adam, this looks fantastic! Link to comment Share on other sites More sharing options...
diogo Posted December 9, 2012 Share Posted December 9, 2012 It does! Link to comment Share on other sites More sharing options...
woop Posted December 9, 2012 Share Posted December 9, 2012 Superb! Link to comment Share on other sites More sharing options...
arjen Posted December 10, 2012 Share Posted December 10, 2012 Like this! Link to comment Share on other sites More sharing options...
arjen Posted December 10, 2012 Share Posted December 10, 2012 When saving an Inputfield using my new favourite inputfield I get an error message: Error Call to undefined function _() (line 83 of /xxx/xxx/InputfieldAceEditor/InputfieldAceEditor.module) Some sniffing on my part I found two issues here: $field->description=_('Dims all but currently active line'); works if I change it too: $field->description=$this_('Dims all but currently active line'); and $field->description=_('Show non-printable characters like tabs or new line characters'); works if I change it to: $field->description=$this->_('Show non-printable characters like tabs or new line characters'); Any clues on how to do this using GitHub? Tried to fork it, but that didn't seem the proper way. Thanks for creating this! Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 10, 2012 Author Share Posted December 10, 2012 I don't think that is correct, is it? Are you running latest version? I thought _() function was added as multilingual helper, as a global function? Anyway, I'll look into it, just post it int github as an issue please, thanks --- Actually, thinking about it: you make changes in your repo, commit as usually, push into your repo on github, then go into mine and make a pull request That would be first pull request, so if you want to go the extra mile, I'd be glad Link to comment Share on other sites More sharing options...
apeisa Posted December 11, 2012 Share Posted December 11, 2012 Adam, in modules you need to use $this->_() 1 Link to comment Share on other sites More sharing options...
Adam Kiss Posted December 11, 2012 Author Share Posted December 11, 2012 Got it Link to comment Share on other sites More sharing options...
arjen Posted December 11, 2012 Share Posted December 11, 2012 @adamkiss, I got some time to do this, but that would be tonight. 1 Link to comment Share on other sites More sharing options...
Binrd Posted January 17, 2013 Share Posted January 17, 2013 AceEditor is really great! But I've found the some error in Chrome browser (it is already on github now, I've add the issue). And it only happenes when the cyrillic Russian symbols are typed. Link to comment Share on other sites More sharing options...
Adam Kiss Posted January 17, 2013 Author Share Posted January 17, 2013 Hm, I haven't really tested it with other than Latin-1 extended (and there might be the problem ); Let's deal with this on GitHub. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now