Q695 Posted May 29, 2013 Share Posted May 29, 2013 Does anyone know of a stand alone text editor that works similar to the one I'm using right now, because I've looked at the WordPress editors, but it looks like they need all kinds of files. I'm thinking something that I can easily write an include statement with on my own site, and easily tell it what to pass the variable as. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/ Share on other sites More sharing options...
trq Posted May 29, 2013 Share Posted May 29, 2013 Google "HTML WYSIWYG editor". There should be plenty of results. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1432879 Share on other sites More sharing options...
kicken Posted May 29, 2013 Share Posted May 29, 2013 Does anyone know of a stand alone text editor that works similar to the one I'm using right now, because I've looked at the WordPress editors, but it looks like they need all kinds of files. I'm thinking something that I can easily write an include statement with on my own site, and easily tell it what to pass the variable as. I prefer the TinyMCE editor. The distribution consists of a lot of files, but you only need to include one to actually implement it on your page, everything else is handled automatically. Then to setup the editor it's just a single function call. If you really desire an editor with just a single file implemtation then do some googling, there is surely something out there to fit your needs. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1432883 Share on other sites More sharing options...
Q695 Posted May 29, 2013 Author Share Posted May 29, 2013 I prefer the TinyMCE editor. The distribution consists of a lot of files, but you only need to include one to actually implement it on your page, everything else is handled automatically. Then to setup the editor it's just a single function call. If you really desire an editor with just a single file implemtation then do some googling, there is surely something out there to fit your needs. I like it, but I'm confused as to how I write one simple include statement, and it will only require me to change the textarea name. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1432887 Share on other sites More sharing options...
kicken Posted May 29, 2013 Share Posted May 29, 2013 I like it, but I'm confused as to how I write one simple include statement, and it will only require me to change the textarea name. You don't, you use two lines. One to include tinymce and all it's required files, and another to actually initialize the editor. By one line I meant you dont have to include all the files that come as part of the distribution, only a single .js file. You need a separate line to actually install the editor onto a textarea. For example: <script type="text/javascript" src="/path/to/tinymce.js"></script> <script type="text/javascript">tinymce.init({selector: '#textarea_id'});</script> That said if that is too much for you still, then you could take it down to a single line by creating your own .js file which will include tinymce and then install the editor onto a textarea. I've done something like this before by having a script that automatically applies tinymce to any element that has a class of wysiwyg-editor. Eg: <script type="text/javascript" src="/path/to/myfile.js"></script> ... <textarea class="wysiwyg-editor"></textarea> Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1432890 Share on other sites More sharing options...
Q695 Posted May 29, 2013 Author Share Posted May 29, 2013 I've never used word press, so I don't know how to integrate anything from it. I'm a BasePHP user. Is there an easy integration video? Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433070 Share on other sites More sharing options...
trq Posted May 29, 2013 Share Posted May 29, 2013 Have you tried reading some documentation? TinyMCE is very well documented. Where exactly are you stuck? If your reply is "I just can't get it working" or similar your in the wrong game. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433073 Share on other sites More sharing options...
Q695 Posted May 30, 2013 Author Share Posted May 30, 2013 The word press file has almost everything that looks foreign to me on the javascript/php/html knowledge that I have. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433206 Share on other sites More sharing options...
Jessica Posted May 30, 2013 Share Posted May 30, 2013 Why do you keep talking about Wordpress? Wordpress is a blogging/CMS platform. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433209 Share on other sites More sharing options...
Q695 Posted May 30, 2013 Author Share Posted May 30, 2013 (edited) A profile editor for a game. The principles are the same for a a blog post as a profile editor. Edited May 30, 2013 by Q695 Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433214 Share on other sites More sharing options...
Jessica Posted May 30, 2013 Share Posted May 30, 2013 ... You said you want a text editor. Do you really mean a CMS? Because it SOUNDS like what you want is a WYSIWYG editor, which is what TinyMCE is. It has nothing to do with Wordpress. If you want a full CMS/blogging platform like Wordpress, that is completely different. That software would USE a WYSIWYG but that's not all it is. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433216 Share on other sites More sharing options...
Q695 Posted May 30, 2013 Author Share Posted May 30, 2013 I'm looking for a WYSIWYG text editor for a profile of whatever user that logs in can use to edit their own user profile. I have the section fully built, but I want to quickly add a new feature to the page to make the profile editor part better. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433251 Share on other sites More sharing options...
Jessica Posted May 30, 2013 Share Posted May 30, 2013 Well, then TinyMCE is a good choice. I only commented because you keep saying Wordpress, and no one has said anything about Wordpress but you. Try TinyMCE. It's easy. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433255 Share on other sites More sharing options...
Q695 Posted May 30, 2013 Author Share Posted May 30, 2013 I hear do you know word press from everyone, so I was thinking it was a simple word press feature to plug into my site, like PlugPHP. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433301 Share on other sites More sharing options...
trq Posted May 30, 2013 Share Posted May 30, 2013 I hear do you know word press from everyone, so I was thinking it was a simple word press feature to plug into my site, like PlugPHP. That sentence makes no sense. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433304 Share on other sites More sharing options...
Q695 Posted May 30, 2013 Author Share Posted May 30, 2013 PlugPHP - plug ins that you can find written by others online to plug into your own php applications. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433305 Share on other sites More sharing options...
trq Posted May 31, 2013 Share Posted May 31, 2013 There is no concept of "plugins" in PHP. They are application / framework specific. Still your sentence makes no sense. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433340 Share on other sites More sharing options...
Q695 Posted May 31, 2013 Author Share Posted May 31, 2013 So if you're taking someone elses framework for something like a captcha, and plug it into your own code, it doesn't get called a plug_in, not to be confused with a plugin? Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433482 Share on other sites More sharing options...
Q695 Posted May 31, 2013 Author Share Posted May 31, 2013 Seems odd the author says you just drop the ile, and you need to either: add 2 files to the pathway lower the path 2 levels to plug it in Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433483 Share on other sites More sharing options...
Jessica Posted June 1, 2013 Share Posted June 1, 2013 OP, if you need specific help with setting up a specific editor, please post that in the appropriate forum. Otherwise I believe this thread has run it's course. Quote Link to comment https://forums.phpfreaks.com/topic/278504-stand-alone-text-editor/#findComment-1433485 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.