RuiVP Posted Saturday at 03:40 PM Posted Saturday at 03:40 PM I have a few issues with TinyMCE. And now, it turns out I can't roll back to CKEditor, because if I try to do so, the textfield gets emptied. If I should separate these issues into separate topics please alert me. 1. A finder tool in the code pane would be very useful. Apparently the find tool in the Firefox browser doesn't work inside the TinyMCE code editor pane. I have to open the code pane, copyAll, go to a Notepad++ editor or similar, do the stuff (find, replace, etc.), and copy paste it back to the code pane... uf! 2. I tried to add to the TinyMCE menus a line for changing <p> into <div>, #Blocks div {} /*Division*/ but when I try to apply it, I get a forbidden sign and nothing happens. Is this a coded forbidden action? I have to shift to the code pane view, look for the block in the code, change it manually from <p> to <div>, and finally go back to the wysiwyg editor. Then, I can apply some div.style I added to the menus, it will work perfectly. I find similar problems with other kinds of block tags - once the block is tagged as <p>, it won't change (unless manually). Is there a fix for this? 3. In the TinyMCE tools for tables it would be very nice to have an option to insert a <caption>. And another one for borders. I have to do it by hand everytime. Wish you all a nice weekend.
sleepycron Posted Monday at 10:14 AM Posted Monday at 10:14 AM For the first one, TinyMCE has a searchreplace plugin that adds find and replace to the editor. I think you can enable it in the InputfieldTinyMCE module settings and then add its button to the toolbar.
virtualgadjo Posted yesterday at 01:07 PM Posted yesterday at 01:07 PM Hi, if it might be useful, I have a little plugin that turns a `p` into a `div` with a single click (while preserving any CSS classes the `p` might have) and lets you undo the change with a simple Ctrl+Z or the Mac equivalent. i can upload it to GitHub if you're interested. have a nice day 1
RuiVP Posted yesterday at 01:39 PM Author Posted yesterday at 01:39 PM On 11/23/2026 at 10:14 AM, sleepycron said: For the first one, TinyMCE has a searchreplace plugin that adds find and replace to the editor. I think you can enable it in the InputfieldTinyMCE module settings and then add its button to the toolbar. Thanks. Never used it until now, because the browser finder could do the job (except for replacement). Still, it doesn't work with the code pane (the pane that opens when you press the button <>).
RuiVP Posted yesterday at 01:43 PM Author Posted yesterday at 01:43 PM 33 minutes ago, virtualgadjo said: if it might be useful, I have a little plugin that turns a `p` into a `div` with a single click (while preserving any CSS classes the `p` might have) and lets you undo the change with a simple Ctrl+Z or the Mac equivalent. Hi, @virtualgadjo, I would like to try it, if you are kind enough to put it on git. Thank you.
virtualgadjo Posted yesterday at 02:35 PM Posted yesterday at 02:35 PM hi @RuiVP here it is https://github.com/virtualgadjo/tinymce-p2div-plugin i can add some screenshots to the readme if you are not that used to pw way of adding tiny plugins you'll se easy peasy and tiny doesn't have any problem with the transformed new div :) have a nice day 1
RuiVP Posted yesterday at 03:58 PM Author Posted yesterday at 03:58 PM hi @virtualgadjo Thanks a lot for this piece of code. I'll try it during this week. Have a nice week
virtualgadjo Posted yesterday at 04:03 PM Posted yesterday at 04:03 PM hi @RuiVP my pleasure 🙂 and you may have seen that i've added some scrennhots to the readme as when you're not eating and drinking pw all day long it may help 🙂 have a nice day... and week of course 1
sleepycron Posted 13 hours ago Posted 13 hours ago 20 hours ago, RuiVP said: Thanks. Never used it until now, because the browser finder could do the job (except for replacement). Still, it doesn't work with the code pane (the pane that opens when you press the button <>). Yeah, searchreplace only works in the normal view. The <> source window is just a plain textarea so the plugin doesn't touch it. For plain text it's fine in the normal view, for tags I'd end up copying it out to an editor too.
Gideon So Posted 10 hours ago Posted 10 hours ago On 11/21/2026 at 11:40 PM, RuiVP said: In the TinyMCE tools for tables it would be very nice to have an option to insert a <caption>. And another one for borders. I have to do it by hand everytime. I think you should try hanna code and hanna code dialog for tinymce. Search them in the module directory. Gideon
RuiVP Posted 8 hours ago Author Posted 8 hours ago Thank you all! I'm so happy to have your support. Specially because I'm not a programmer and without your help I would be completely lost and unable to use PW. I do have Hannacode installed, but for such a simple problem, and to keep the text field clean and readable, I would prefer a simpler solution. By the way, in my installation the Hannacode/hannacode dialog is not working with the inline editing (doesn't load and throws an error). So far, I'm good with the @virtualgadjo solution. Â
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