Closed rafalradomski closed 9 years ago
I'll look into it today! Thanks
— Sent from Mailbox
On Wed, Sep 2, 2015 at 2:14 AM, Rafał Radomski notifications@github.com wrote:
Hi when I using your code I have error:
TypeError: Cannot read property 'config' of undefined at http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:10230:40 at http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:1401:11 at http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:1759:13 at baseForOwn (http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:1099:12) at http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:1729:16 at baseReduce (http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:1398:5) at Function.1.isAry (http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:1891:11) at Quill.30.Quill.formatText (http://local.hmhone.hmhco.com:9000/lib/quill/dist/quill.js:10226:17) at addPlaceholder (http://local.hmhone.hmhco.com:9000/lib/hmh-components/app/js/components/editor/quill.directive.js:63:26) at placeholderHandler (http://local.hmhone.hmhco.com:9000/lib/hmh-components/app/js/components/editor/quill.directive.js:73:42) <ng-quill-editor ng-if="vm.note.flag.show" ng-model="vm.note.content.note_html" toolbar="true" link-tooltip="true" image-tooltip="true" toolbar-entries="bold italic underline" toolbar-unused="strike link font size list bullet align color background image" editor-required="true" required="" error-class="input-error" class="ng-pristine ng-untouched ng-valid ng-scope ng-isolate-scope">
It looks like quill library looking for some config in line: 10230
if (!(value && value !== format.config["default"])) { formats[name] = null; }
I'm using quill v0.20.0
Reply to this email directly or view it on GitHub: https://github.com/brettimus/quill-placeholder/issues/3
Hey I'm running out of time to look into this issue today. Will try again tomorrow.
I saw you also opened an issue on the quill repo (https://github.com/quilljs/quill/issues/469)
Did that resolve anything for you?
Not but I mixed your code with https://github.com/ksivamuthu/quill-html-placeholder and it's working ;)
Hey can you post the code that caused your error? I can't duplicate, and I'm also on Quill 0.20.0
I updated the main repo with a working example too if that helps.
alright - inability to replicate + the complete overhaul on the v1 branch means i'm going to close this.
Hi when I using your code I have error:
It looks like quill library looking for some config in line: 10230
I'm using quill v0.20.0.
When I comment line 27 in your code, placeholder working, but without styling: