I've opened #1883278: Integrate with WYSIWYG editors (Insert?) against Fill PDF. Fill PDF doesn't currently provide any fields, so wondering what the best way to integrate would be. It seems like adding a field would get me the most free. Are there any other hooks/APIs I should look at if I want to basically expose a custom hyperlink creation interface? Is integrating with Insert the wrong way to go here? I'm thinking about it and hoping to get more tested WYSIWYG editor support for free too, rather than rolling my own.

Comments

Snater’s picture

Version: 7.x-1.x-dev » 8.x-2.x-dev
Issue summary: View changes

I am browsing through old issues while working on the module's D8 version.

As for D7, hook_insert_widgets needs to be implemented for supplying the widget info, hook_insert_styles for supplying a custom style, and hook_insert_content for rendering that style. See insert.inc and file.inc. Finally, in JS, an event handler needs to be set up listening to insertIntoActiveEditor triggered on the insert button node. The handler would be responsible for replacing individual placeholders set up in the custom template, registered by hook_theme and rendered by hook_insert_content as mentioned above. I think that should be the basics.

In D8, the interface will likely be a bit more flexible. All necessary information on how to interface to Insert should be an outcome of #2994066: Create interface for other modules, so I tend to close this ticket if there are no more questions. (I acknowledge it has been a while since this ticket was created.)

wizonesolutions’s picture

Status: Active » Fixed

Haha, yes, closing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.