Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

  • Like 1
Posted
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 <>).

Posted
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.

Posted
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.

Posted
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

Posted

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.

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...