We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I add another froala editor to an observable array it displays a different value in an editor already existing.
<div id='myView'> <div data-bind="foreach:questions"> <textarea data-bind="value:questionLabel, froala: questionLabel, froalaOptions: $root.editorOptions"></textarea> </div> <button data-bind="click:addItem">Add Item</button> </div> <script type="text/javascript"> function Model() { const self = this; this.questions = ko.observableArray([{ questionLabel:'first item' },{ questionLabel:'second item' }]); this.addItem = function(){ self.questions.push({questionLabel:'third item'}); } this.editorOptions = { key: <froalaKey>, enter: FroalaEditor.ENTER_BR, charCounterCount: false, //initOnClick: true, toolbarButtons: ['bold', 'italic', 'underline', '|', 'align', 'outdent', 'indent', '|', 'insertLink', 'insertImage', 'insertVideo', 'insertFile', '|', 'clearFormatting', 'html', "|", 'undo', 'redo'] } }; let model = new Model(); ko.applyBindings(model, document.getElementById('myView')); </script>
In this example it changes the display value of 'second item' when I click the add item button.
The text was updated successfully, but these errors were encountered:
Fix for froala#16
5d57710
No branches or pull requests
When I add another froala editor to an observable array it displays a different value in an editor already existing.
In this example it changes the display value of 'second item' when I click the add item button.
The text was updated successfully, but these errors were encountered: