Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插入图片,打开保存貌似不生效哦 #3

Open
purvisdevgit opened this issue Jul 29, 2021 · 1 comment
Open

插入图片,打开保存貌似不生效哦 #3

purvisdevgit opened this issue Jul 29, 2021 · 1 comment

Comments

@purvisdevgit
Copy link

No description provided.

@taleebanwar
Copy link
Contributor

taleebanwar commented Aug 24, 2021

Currently the implementation, as I understand, is
Create a class which inherits from KSharpEditor.IKEditorEventListener. Pass the instance of this class to KEditorEventListener property.

       public class KEditorEventListener : IKEditorEventListener
          {
        public void OnEditorErrorOccured(Exception ex)
        {
            
        }

        public void OnEditorLoadComplete()
        {
            
        }

        public void OnInsertImageClicked()
        {
            
        }

        public void OnOpenButtonClicked()
        {
            
        }

        public void OnSaveButtonClicked()
        {
            
        }
    }

            KEditor editor = new KEditor();
            editor.Dock = DockStyle.Fill;
            editor.Name = "kEditArticle";
            KEditorEventListener listener = new KEditorEventListener();
            editor.KEditorEventListener = listener;

            this.Controls.Add(editor);

I've raised a PR for event. Once approved you should get these as events in properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants