angular-trix icon indicating copy to clipboard operation
angular-trix copied to clipboard

Disabled or read-only state

Open xzbd opened this issue 8 years ago • 1 comments

I couldn't find any information (here or at original trix documentation) about making editor disabled or read-only state. So i implemented like this: angular.element(editor.element).prop('contenteditable', false); angular.element(editor.element.toolbarElement).remove();

Any better implementation idea or any information about doing this right way?

xzbd avatar Nov 24 '16 13:11 xzbd

Probably binding HTML content using ngHtmlBind is better approach so that you can avoid writing controller code. Original idea: https://github.com/basecamp/trix/issues/331

zendu avatar Aug 01 '17 02:08 zendu