♥JcMagpie 1,692 Posted September 8, 2019 JcM CKEditor V1.0 A simple add-on to let you place a WYSIWYG HTML editor onto your site’s admin. CKEditor 4 Proven, enterprise-grade WYSIWYG HTML editor with wide browser compatibility, including legacy browsers. Paste from Word and Excel, spell check, accessibility checker, tables. Autocomplete, @mentions, widgets, code snippets, emoji 😊 plugins. Full control over content: HTML filtering, view source mode. Great accessibility: WCAG 2.0 AA and Section 508 compliant. Long-term support (LTS) until 2023. For Phoenix simply copy new files into the required places and your done. You can if you like do it the old fashion way as in the frozen method below. For frozen it’s a simple edit of one template file, open :- public_html/admin/includes/template_bottom.php and just before the </body> add this code, <script src="https://cdn.ckeditor.com/4.12.1/standard/ckeditor.js"></script> <script> CKEDITOR.replace( "products_description[1]" ); CKEDITOR.replace( "manufacturers_description[1]" ); CKEDITOR.replace( "categories_description[1]" ); </script> That’s it your done. If you go to admin and edit a product you will see the WYSIWYG HTML editor on the product description box. This is just a simple application of the editor you can expand it as much as you like. It has been tested on Phoenix 1.0.2.0 only. It should however work on other versions and frozen Enjoy. 3 1 kgtee, valquiria23, Smoky Barnable and 1 other reacted to this Share this post Link to post Share on other sites
kgtee 75 Posted September 9, 2019 Well done Zahid! I am now using a custom built ckeditor.js which includes support for Bootstrap Tabs and iframes. These two features are really good for generating nice product descriptions. Share this post Link to post Share on other sites
valquiria23 238 Posted September 9, 2019 Excellent addon @JcMagpie We need more addon like yours to boost Phoenix since there are very few addons and the core of Phoenix is awesome! Best regards Valqui Community Oscommerce fan You'll find the latest osC community version here. Share this post Link to post Share on other sites
valquiria23 238 Posted September 9, 2019 (edited) Good morning Zahid @JcMagpie. I was testing the addon on my new Frozen test site and it didn't work. Is this addon only for Phoenix? Best regards Valqui Edited September 9, 2019 by valquiria23 Community Oscommerce fan You'll find the latest osC community version here. Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted September 9, 2019 28 minutes ago, valquiria23 said: Is this addon only for Phoenix? I have only tested on Phoenix 1.0.2.2 but it should work on anything as admin side has not changed. However for frozen you must do the edit. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted September 9, 2019 just tested on frozen and works fine. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted September 9, 2019 Your public_html/admin/includes/template_bottom.php should be like this <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ ?> </div> <?php require('includes/footer.php'); ?> <br /> <script src="https://cdn.ckeditor.com/4.12.1/standard/ckeditor.js"></script> <script> CKEDITOR.replace( "products_description[1]" ); CKEDITOR.replace( "manufacturers_description[1]" ); CKEDITOR.replace( "categories_description[1]" ); </script> </body> </html> 1 valquiria23 reacted to this Share this post Link to post Share on other sites
valquiria23 238 Posted September 9, 2019 Good morning Zahid. I found the problem !! My site is in Spanish, I had to change CKEDITOR.replace ("products_description [1]"); to CKEDITOR.replace ("products_description [2]"); That made the aditor appear! Thank you very much Zahid for your excellent support and addon !!! regards Valqui Community Oscommerce fan You'll find the latest osC community version here. Share this post Link to post Share on other sites
valquiria23 238 Posted September 9, 2019 12 hours ago, kgtee said: Well done Zahid! I am now using a custom built ckeditor.js which includes support for Bootstrap Tabs and iframes. These two features are really good for generating nice product descriptions. Hi @kgtee Changing <script src="https://cdn.ckeditor.com/4.12.1/standard/ckeditor.js"></script> for <script src="https://cdn.ckeditor.com/4.12.1/full-all/ckeditor.js"></script> You can insert iframes and also have many more options that are enabled in the editor. Best regards. Valqui 1 kgtee reacted to this Community Oscommerce fan You'll find the latest osC community version here. Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted September 9, 2019 6 minutes ago, valquiria23 said: You can insert iframes and also have many more options that are enabled in the editor. Yes you can I only added the standerd to keep is simple. You can also add many plugins to improve them also. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
LeeFoster 219 Posted October 9, 2019 I just don't think your addons like me, doesn't work in Phoenix 1.0.2.5 Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 9, 2019 ever get that feeling of deja vu 😂, not sure what to say! It has been tested on Phoenix 1.0.2.0 only Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 9, 2019 just checked and working flawlessly.... Share this post Link to post Share on other sites
LeeFoster 219 Posted October 9, 2019 On 9/8/2019 at 10:35 PM, JcMagpie said: It has been tested on Phoenix 1.0.2.0 only. It should however work on other versions and frozen Yes but ^^^^ Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 9, 2019 1.0.2.5 is NOT other versions of Frozen but that mute, as i just installed on 1.0.2.5 from scratch and look works out of box! Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 9, 2019 If I was to take a guess your either got a js conflict or have installed the hook in wrong place! It needs to be in public_html/includes/hooks/admin/siteWide/ckedit.php Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 9, 2019 Oh and if you do @valquiria23 edit you can have the full version <script src="https://cdn.ckeditor.com/4.12.1/full-all/ckeditor.js"></script> That too works with 1.0.2.5 with no issues. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 9, 2019 Anyone installing this to add discriptions to osC CE should remember that your site is responsive! So anything you add using CK must also be resposive or you will have none responsive product_info page. Also if editing in <> code then make sure to check as a missing closing </> tag can brake your site or worse as it's beeing saved in db. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 31, 2019 JcM CKEditor V1.1 Has been updated to apply to newsletter and email in admin. Now you can spice up your newsletters and emails with images and html layout within admin. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted October 31, 2019 Tested on Phoenix 1.0.3.0 only but both email and news letter work fine. Now your email and letters can be more than plain text without having to cut and past html. 1 valquiria23 reacted to this Share this post Link to post Share on other sites
Denzel 125 Posted November 12, 2019 Hi ! CK Editor throws errors while not all textareas where found on all adminpages... ckeditor.js:19 [CKEDITOR] Error code: editor-incorrect-element. Object ckeditor.js:19 [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-incorrect-element ckeditor.js:19 [CKEDITOR] Error code: editor-incorrect-element. Object ckeditor.js:19 [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-incorrect-element ckeditor.js:19 [CKEDITOR] Error code: editor-incorrect-element. Object ckeditor.js:19 [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-incorrect-element ckeditor.js:19 [CKEDITOR] Error code: editor-incorrect-element. Object ckeditor.js:19 [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-incorrect-element ckeditor.js:19 [CKEDITOR] Error code: editor-incorrect-element. Object ckeditor.js:19 [CKEDITOR] For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-incorrect-element Why not include CK like Tiny MCE in https://apps.oscommerce.com/1VCAj&tinymce-editor-for-admin ? Tiny MCE even catches all languageareas but does not load on every adminsite... Should I try to update and upload ? Greetings, Denzel. 1 JcMagpie reacted to this Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted December 3, 2019 Thankyou @Denzel Has been updated to v1.2, should stop any errors given on admin pages not using the script. Clearly I was not looking at the correct pages to see the errors you reported, please accept my apologies. JcM CKEditor V1.2 Phoenix Updated to limit script to pages it works on only. var $good_pages = ['categories.php', 'manufacturers.php', 'newsletters.php', 'mail.php']; If you need it on another page then add that page to the code. 1 1 Denzel and valquiria23 reacted to this Share this post Link to post Share on other sites
LeeFoster 219 Posted December 3, 2019 4 hours ago, JcMagpie said: Thankyou @Denzel Has been updated to v1.2, should stop any errors given on admin pages not using the script. Clearly I was not looking at the correct pages to see the errors you reported, please accept my apologies. JcM CKEditor V1.2 Phoenix Updated to limit script to pages it works on only. var $good_pages = ['categories.php', 'manufacturers.php', 'newsletters.php', 'mail.php']; If you need it on another page then add that page to the code. Installed without issue. Have you considered adding the good pages and the field name list to an admin configuration section though? Share this post Link to post Share on other sites
♥JcMagpie 1,692 Posted December 3, 2019 33 minutes ago, LeeFoster said: admin configuration section though Not sure I understand, Which confg section would benifit from this? It can be added to any section that has a textarea. Share this post Link to post Share on other sites
LeeFoster 219 Posted December 3, 2019 Just now, JcMagpie said: Not sure I understand, Which confg section would benifit from this? It can be added to any section that has a textarea. I mean that you have a config section that let's you select the good pages rather than going into the file. Share this post Link to post Share on other sites