Skip Navigation

[Fermé] Alternate WYSIWYG Editor to Zebra

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Marqué : 

This topic contains 6 réponses, has 2 voix.

Last updated by Nikos Il y a 8 années et 5 mois.

Assigned support staff: Nikos.

Auteur
Publications
#79420

Hi guys,

Any ETA on moving to a scaled back version of TinyMCE instead of Zebra?

If not soon, is there some advice on how I can set up CRED to use an alternate WYSIWYG editor? Zebra is hard to customise tool options!

Cheers

#79511

Hello Joff,
this is in the todo list,

however it is not likely to be on next update.

Right now the cleditor, is what can be used with CRED forms.

What exact customization are you looking after?

#79530

Hi Nikos,

I'm trying to prevent users from admin hyperlinks to the body content.

Cheers

Joff

#79532

adding... Cheers 🙂

#79571

Hi jeff,

i am not sure how using the tinymce, instead of cleditor solves this problem.

What you can do is use a cred hook and filter the post_content field.
https://toolset.com/documentation/user-guides/cred-api/

Hope this helps

#79728

Thanks Nikos,

The above solution still allows for a user to type in hyperlinks and then you can pass validation on the content. I was aiming to save them the effort by disabling both the hyperlink an view source functions in the wysiwyg editor, leaving just standard formatting.

I've looked through Zebra's PHP files to try and find where I can override its default editor set but so far I can't figure it out.

Do you know where in the code I can do this, or perhaps some guidance on implementing a third party wysiwyg editor myself?

Validating after submission will frustrate users who spend effort crafting entries, only to have them rejected.

#79918

Hi Joff,

you want to use the wp_tinymce hooks to allow/disallow certain tags

There is a feature on the CRED todo list to handle allowed tags for elements

Right now if you want to use some javascript, you can achieve same functionality
by filtering the cleditor content periodically

the element that is WYSIWYG has a data attrubute wiht the editor instance

like :var editor= $('My_element_selector').data('editor');

also you can use the $('My_element_selector').val(); to get the current element value

the editor has similar functions to get and set content and refresh

Le sujet ‘[Fermé] Alternate WYSIWYG Editor to Zebra’ est fermé à de nouvelles réponses.