I have a custom formatter (PHP) that makes use of one image style and a link to the original image to create a colorbox popup. During the testing phase, the custom formatter code was inserted into the body field as a filter ( [...] ), but, with nothing being changed on the site module-wise, after some time testing the button just starts to insert html.
Is there something I'm missing regarding the inner workings of either of the modules? Thanks!

Comments

magnestyuk’s picture

Project: Custom Formatters » Wysiwyg Fields
Version: 7.x-2.2 » 7.x-1.x-dev

I'm posting this to the wysiwyg fields queue, as it seems to belong here. The html insertion happens when my cursor is at the beginning of a paragraph text. If I make a line break and my cursor is in an empty paragraph, the [] filter is inserted. Is this desired behavior?

David_Rothstein’s picture

[Edit: I had too many tabs open and accidentally posted a comment in this issue that was intended for another issue. Sorry! I've deleted the original comment.]

deciphered’s picture

Can you provide some screenshots of what is being inserted, not sure I entirely follow.

David_Rothstein’s picture

I'm not sure it's the same issue, but I've seen problems that sound a bit like this when using Chrome. Basically, in Chrome, when you embed an entity in the WYSIWYG it seems to be embedding the rendered HTML alongside the [wysiwyg_field] tag (and thus saves both to the database), rather than only embedding the [wysiwyg_field] tag itself.

After investigating it for a while, I found that my issue was nicely fixed with this patch to the WYSIWYG module: #1927968: CKEditor InsertHtml method broken in webkit browsers