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

How I can disable editing #105

Open
jaidpr opened this issue Dec 17, 2018 · 2 comments
Open

How I can disable editing #105

jaidpr opened this issue Dec 17, 2018 · 2 comments

Comments

@jaidpr
Copy link

jaidpr commented Dec 17, 2018

Can you please let me know if there is a setting to disable the complete control.
I had tried with 'readonly':true, but not disabling the control.

@pyhp2017
Copy link

it's simple, just add following code in the end of "editor.js". (after $.fn.editor function):

$.fn.disableEditor = function(){
$(this).data('editor').attr('contenteditable' , false);
}

@msnitish
Copy link

it's simple, just add following code in the end of "editor.js". (after $.fn.editor function):

$.fn.disableEditor = function(){
$(this).data('editor').attr('contenteditable' , false);
}

Similarly, if we want to check if the textvalue is empty, how do we write a function ?
@pyhp2017
Thank You.

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

3 participants