bug with wysiwyg field named "head"
Open
Nobody has claimed this yet.
bug
- Dominant language
- JavaScript
- Stars
- 3.9k
- Forks
- 703
- PR merge metrics
- No merged PRs in 30d
Description
this is what happens when you edit an entity that have a field named "head":

instead of the content of that field you see that snippet of code. in show view you don't see anything but get lots of errors in the js console, like this one:
TypeError: undefined is not a function
at a.$inject (http://localhost:3000/public/vendor/ng-admin/ng-admin.min.js:4:5623)
at http://localhost:3000/public/components/angular/angular.min.js:194:11
at l.$get.xa.(anonymous function) [as value] (http://localhost:3000/public/components/angular/angular.min.js:59:175)
at hb.functionCall (http://localhost:3000/public/components/angular/angular.min.js:198:426)
at Object.<anonymous> (http://localhost:3000/public/components/angular/angular.min.js:108:188)
at l.$get.l.$digest (http://localhost:3000/public/components/angular/angular.min.js:123:401)
at l.$get.l.$apply (http://localhost:3000/public/components/angular/angular.min.js:126:471)
at http://localhost:3000/public/components/angular/angular.min.js:139:187
at e (http://localhost:3000/public/components/angular/angular.min.js:40:339)
at http://localhost:3000/public/components/angular/angular.min.js:44:375
TypeError: Cannot read property 'replace' of undefined
at a.$inject (http://localhost:3000/public/vendor/ng-admin/ng-admin.min.js:4:5622)
at http://localhost:3000/public/components/angular/angular.min.js:194:11
at l.$get.xa.(anonymous function) [as value] (http://localhost:3000/public/components/angular/angular.min.js:59:175)
at hb.functionCall (http://localhost:3000/public/components/angular/angular.min.js:198:426)
at Object.<anonymous> (http://localhost:3000/public/components/angular/angular.min.js:108:188)
at l.$get.l.$digest (http://localhost:3000/public/components/angular/angular.min.js:123:401)
at l.$get.l.$apply (http://localhost:3000/public/components/angular/angular.min.js:126:471)
at http://localhost:3000/public/components/angular/angular.min.js:139:187
at e (http://localhost:3000/public/components/angular/angular.min.js:40:339)
at http://localhost:3000/public/components/angular/angular.min.js:44:375
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with an entity field named "head" in the WYSIWYG edit and show views, then inspect the JavaScript console errors shown in the report. Done means the field displays its content in edit view, appears in show view, and no related console errors occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100