vxda Posted October 12, 2014 Share Posted October 12, 2014 Hi right now on my website www.hate.it. When u want to add a hate (post) u can use basic textarea. I wonder is there a way to use some more advanced editor like for example this one we use on processwire forum. Anyone implemented something simillar ? Cheers. Paweł Link to comment Share on other sites More sharing options...
kongondo Posted October 12, 2014 Share Posted October 12, 2014 Uh? I get a 'site not installed' message when attempting to view your site. Don't know if you've seen it but there's a guide on how to implement CKEditor or TinyMCE in the frontend https://processwire.com/talk/topic/7366-frontend-form-with-tinymce-or-ckeditor-module/ 1 Link to comment Share on other sites More sharing options...
vxda Posted October 13, 2014 Author Share Posted October 13, 2014 Uh? I get a 'site not installed' message when attempting to view your site. Don't know if you've seen it but there's a guide on how to implement CKEditor or TinyMCE in the frontend https://processwire.com/talk/topic/7366-frontend-form-with-tinymce-or-ckeditor-module/ Thanks for reply. lol i should fix that. , something with www.hate.it. site can be seen here : http://hate.it/ Thaks for link i will look it up. Link to comment Share on other sites More sharing options...
vxda Posted October 14, 2014 Author Share Posted October 14, 2014 I found that downloading ckeditor and implementing it was way easyer,Download from here:http://ckeditor.com/downloadInclude ckeditor.js on website along with jquery plugin. <?php echo '<script src="'.$config->urls->templates.'js/ckeditor/ckeditor.js"></script>'; echo '<script src="'.$config->urls->templates.'js/ckeditor/adapters/jquery.js"></script>'; ?> enable plugin for textarea with id selector in your js file function enableCkeditor() { $( 'textarea#editor1' ).ckeditor(); }; and woop it works http://hate.it/add-hate/you need to be loged in to see form tho . Hope it helps someone 3 Link to comment Share on other sites More sharing options...
kongondo Posted October 14, 2014 Share Posted October 14, 2014 Whoa! Four lines of code! I have to try this...just for fun...lightning...here I come... Link to comment Share on other sites More sharing options...
kongondo Posted October 14, 2014 Share Posted October 14, 2014 Hmmm, doesn't work for me....Editor is not loaded Link to comment Share on other sites More sharing options...
kongondo Posted October 14, 2014 Share Posted October 14, 2014 Ah, got it working. See instructions here: http://ckeditor.com/ckeditor_4.3_beta/samples/replacebyclass.html The textarea also needs the class 'ckeditor' 2 Link to comment Share on other sites More sharing options...
onjegolders Posted October 14, 2014 Share Posted October 14, 2014 Love the site 1 Link to comment Share on other sites More sharing options...
vxda Posted October 14, 2014 Author Share Posted October 14, 2014 Ah, got it working. See instructions here: http://ckeditor.com/ckeditor_4.3_beta/samples/replacebyclass.html The textarea also needs the class 'ckeditor' ye sorry forgot about that Love the site Thanks 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