Opened 9 years ago
Closed 8 years ago
#13734 closed Bug (invalid)
Method not found
Reported by: | tobi | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce
First i dowloaded CKEditor with the following settings:
- Choose preset: Basic
- Select your plugins and skin:
-FontSize and Family -Basic Styles -Editor Toolbar -Enter Key -Escape HTML Entities -IFrame Editing Area -IndentList -Link -List -Undo -... followed by the plugins required by other plugins
As skin i picked "Flat".
- Finalize and download:
Editors language is English and German.
Then i downloaded first the Optimezed version and put it in my web projekt. I builded everything and reloaded and got this error:
"Error Parsing /xhtml/include/vdbw/edit.xhtml: Error Traced[line: 135] The element type "textarea" must be terminated by the matching end-tag "</textarea>"."
After i saw this, i commented the scipt block out where CKEDITOR.replace('mytextareaId') is called and typed in my Firebug Console CKEDITOR.replace('mytextareaId'). I got
TypeError: c[a] is undefined a);var c=this,d=function(){c[a].dir=c.rtl[a]?"rtl":"ltr";b{a,c[a])};this[a]?d()...
So i thought i try the Source code, to see and fix the bug(if its my fault) or to better report. If i tried it with the Source code firebug told me CKEDITOR.replace is not a function.
Expected result
To see the CKEditor.
Actual result
Error
Other details (browser, OS, CKEditor version, installed plugins)
Firefox 40.0.3, Windows 7 Professional, CKEditor 4,
Plugins: -FontSize and Family -Basic Styles -Editor Toolbar -Enter Key -Escape HTML Entities -IFrame Editing Area -IndentList -Link -List -Undo -Dialog -Dialog User Interface -Fake Objects -Floating Panel -Indent/Outdent -List Block -Panel -Rich Combo -UIButton
Attachments (8)
Change History (14)
Changed 9 years ago by
Attachment: | ckeditor_optimized_error.PNG added |
---|
Changed 9 years ago by
Attachment: | ckeditor_optimized_js.PNG added |
---|
Changed 9 years ago by
Attachment: | ckeditor_settings_1.PNG added |
---|
Changed 9 years ago by
Attachment: | ckeditor_settings_2.PNG added |
---|
Changed 9 years ago by
Attachment: | ckeditor_source_error.PNG added |
---|
Changed 9 years ago by
Attachment: | ckeditor_source_js.PNG added |
---|
comment:1 follow-up: 3 Changed 9 years ago by
Status: | new → pending |
---|
- Please attach you build-config.js. I will try the same build as you did.
- Please attach your xhtm file where CKEditor is used
- Message CKEDITOR.replace is not a function; please make sure that ckeditor.js script is included into your xhtml
- Please note that you got error "The element type "textarea" must be terminated by the matching end-tag "</textarea>"." which means that you are missing closing tag for textarea. Have you corrected this issue (added closing tag)?
Changed 9 years ago by
Attachment: | build-config.js added |
---|
Changed 9 years ago by
Attachment: | test_ckeditor.xhtml added |
---|
comment:3 Changed 9 years ago by
- and 2. is attached.
- in attachment ckeditor_source_js you can see that the js is loaded
- i deleted the comment in the script area so i see now a white site with the " c[a] is undefined" error in my console.
Replying to j.swiderski:
- Please attach you build-config.js. I will try the same build as you did.
- Please attach your xhtm file where CKEditor is used
- Message CKEDITOR.replace is not a function; please make sure that ckeditor.js script is included into your xhtml
- Please note that you got error "The element type "textarea" must be terminated by the matching end-tag "</textarea>"." which means that you are missing closing tag for textarea. Have you corrected this issue (added closing tag)?
comment:4 Changed 9 years ago by
Version: | 4.5.3 |
---|
I have checked the builds (without JSF) and they work as expected.
First thing that comes to my mind is below:
<h:head> <h:outputScript library="ckeditor" name="ckeditor.js" /> </h:head>
Are you sure file is inserted with correct path?
Are you perhaps getting any 404 (in Firebug Net tab)?
What is the generated HTML for that page?
If everything is ok with path, please tell me which implementation and version of JSF you use. It would be however better if you could send me your sample application for testing. I could check same thing as you are working with.
comment:5 Changed 9 years ago by
Ok i have found 404 for config.js, de.js & style.js.
I tried it now with "<script src="resources/ckeditor/ckeditor.js" type="text/javascript"></script>" to load the ckeditor.js and everything works fine now. Seems like its not searching the other files relative to itself, but to the given path(if i use the jsf tag i think it uses the name attribute).
Thanks a lot for your help.
comment:6 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |