0
我想在tinymce編輯器中防止我的數據。不應該允許編輯內容。如何在angularjs中做到這一點。提前致謝。例如。我想動態地提供contenteditable false。如何提供這個。請幫助如何防止用戶修改tinymce編輯器內容。用戶不應該編輯內容。如何使用angularjs
我想在tinymce編輯器中防止我的數據。不應該允許編輯內容。如何在angularjs中做到這一點。提前致謝。例如。我想動態地提供contenteditable false。如何提供這個。請幫助如何防止用戶修改tinymce編輯器內容。用戶不應該編輯內容。如何使用angularjs
這是你所問的:
<div ng-if="!contentIsEditable"><textarea></textarea></div>
<div ng-if="contentIsEditable"><mce-directive></mce-directive></div>
和Controller:
$scope.contentIsEditable=($scope.userType==="editor")?true:false;