I'm writing an EE module where I need access to the text of the EE rich text field (a modified version of the WysiHat editor).

When the field is edited, I need to trigger the logic to save the value back to the hidden textarea.

Based on the api docs (http://ellislab.com/expressionengine/user-guide/development/cp_javascript/rte/wysihat_api.html), this should be very simple

    editor = $(this).data('wysihat');

But nothing I try will give me access to the editor instances. The 'editor' variable comes back undefined every time. Any ideas?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.