BitPoet Posted October 13, 2023 Share Posted October 13, 2023 Hey there, born out of a personal need I've implement a lightweight version of @Robin S' Hanna Code Dialog module for TinyMCE. In a bout of creativity, I've named it HannaCodeDialogTiny This module is still in alpha state and needs some extensive testing. If you encounter any problems, please open an issue on GitHub. It has no select options, descriptions or cheat sheets (yet), and it doesn't cope well with nested Hanna Codes. What it does have is the Insert Hanna Code dropdown in the TinyMCE menu bar with dialog-based insertion, non-editable Hanna Codes in the editor, double click on existing codes for editing in a dialog. Hanna Codes are also highlighted, and you can drag and drop them around. The dropdown: Double click on any highlighted Hanna Code: Fill in your values: The Hanna Code has been changed: Have fun! 17 2 Link to comment Share on other sites More sharing options...
Robin S Posted October 14, 2023 Share Posted October 14, 2023 Awesome, thanks for creating this @BitPoet! I am going to be locked into CKEditor for the foreseeable future because in addition to my public modules I have a number of private modules that integrate with CKEditor and rebuilding them all for TinyMCE will be a big job. And for the types of sites I work on I don't see many advantages of TinyMCE over CKEditor so I don't have much motivation to do all the rebuilding at the moment - I'll probably get to it eventually but not any time soon. So it's great that HannaCodeDialogTiny is available for anyone who wants to switch to TinyMCE sooner than I do. 10 Link to comment Share on other sites More sharing options...
BitPoet Posted October 28, 2023 Author Share Posted October 28, 2023 HannaCodeDialogTiny is now in the module directory. 9 Link to comment Share on other sites More sharing options...
cb2004 Posted January 26 Share Posted January 26 There seems to be an error for me on the latest ProcessWire: Fatal Error: Uncaught Error: Class "TextformatterHannaCode" not found in site/modules/HannaCodeDialogTiny/HannaCodeDialogTiny.module:84 There was an upgrade to TinyMCE in this version so I am not sure if that has anything to do with it. I have selected 'hannadialog' and 'hannadropdown' in the 'External plugins to enable' section of the field. Link to comment Share on other sites More sharing options...
cb2004 Posted January 26 Share Posted January 26 OK I looked at that line and it is to do with the default open tag, the next line is to do with the close tag. I went into the module settings for TextformatterHannaCode and clicked 'Submit' without making any changes and now everything works. Link to comment Share on other sites More sharing options...
cb2004 Posted January 26 Share Posted January 26 Just as an aside, it might be worth mentioning you have to enabled those checkboxes for the module to work. I am going to begin testing now. Link to comment Share on other sites More sharing options...
cb2004 Posted January 26 Share Posted January 26 The double click dialog is not working for me. Also I am getting a console error looking for a CSS file /site/modules/HannaCodeDialogTiny/HannaCodeDialogTiny.css?v=0.1.2 Link to comment Share on other sites More sharing options...
cb2004 Posted January 26 Share Posted January 26 Can we have the option to change the dropdown label please? Sorry for totally spamming. Link to comment Share on other sites More sharing options...
cb2004 Posted January 31 Share Posted January 31 @BitPoet loving the module so far, I have posted a few issues in GitHub. Link to comment Share on other sites More sharing options...
cb2004 Posted April 15 Share Posted April 15 @BitPoet I see great potential with this module, have you had a chance to take a look at the issue reports and can I help with anything? Link to comment Share on other sites More sharing options...
cb2004 Posted August 25 Share Posted August 25 @BitPoet any further plans for this as it looks like Tiny is here to stay with version 7? 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