C1EditorExtender save event

Originally Posted 20 May 2014, 5:00 am EST

  • Originally Posted 20 May 2014, 5:00 am EST

    Hello,

    I have installed the C1EditorExtender 2014 V1 (4.0.20141.160) Wijmo and have followed the 3 step tutorial on how to get it in a page and basic settings. I can't find any information on how to handle the tool bar's save button event.

    From my designer VS2010 i cannot see any editor.Text property and get an error trying to use ontextsaved as an event but i suspect these samples are old but all i could find.

    Thanks.
  • Marked as Answer

    Reply

    Hello,

    Sorry for the delay in replying to you. You can handle the client side "commandButtonClick" event and check if the "Save" button has been clicked. You can use the following jQuery code to get the desired results:

        <script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    var e = $("#TextBox1").wijeditor({
    commandButtonClick: function (e, cmd) {
    var cmd = cmd.commandName.toString();
    if (cmd === "save") {
    //Perform Action
    alert("Save Button Clicked");
    }
    }
    });
    });
    </script>


    I hope this helps.

    Regards,
    Sankalp
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels