Jump to content

Extend Editor ProcessPageEditLink


Florian Grüttner
 Share

Recommended Posts

Hi @all,

I started to manipulate (or extend) the Module ProcessPageEditLink with several new options. The reason is, in my needs it is necessary to add more than a title or an extra class to links in WYSYWYG-Editors. I discovered the Module and decided it would be nice to extend the existing code for options like the HTML5-"download"-Attribute or a specific value given to the link in a "data-value"-field. I tried to use existing code like the function to define a "title"-Attribute.

In the dialog it is pretty working in the preview section, means adding and getting this information to a link works for this dialog. But I got problems to save my results in the textarea. I searched for a restriction that makes me not able to get more than the standard-attributes into, but I cant find anyone. 

So maybe I have to look for another hookup on saving to textfield maybe. unfortunately I am very unexperienced in developing modules on PW. But after I got some nice results I wish to finish this task as well. Has anybody an idea whats going wrong?

Maybe there is somebody else interested in this functions.

Thanks for help

Link to comment
Share on other sites

Hi there!

First thing to check is if you have ACF and/or HTML Purifier enabled via field settings. If so, you've just found the most likely culprit.

Both features can be configured via field settings, and you should first check if you can enable the attributes etc. you're trying to use from there, but especially Purifier can be quite strict about allowed content. Sometimes disabling it is the easiest path out.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...