[
https://issues.jboss.org/browse/RF-13728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985697#comment-12985697
]
Michal Petrov commented on RF-13728:
------------------------------------
Ok, the basepath being null is no problem. If the basepath isn't found the
script (ckeditor.js) goes through <script> elements on the page until it finds
the element that points to it, if that fails it it looks on location.href, it
that fails it throws an error.
On the first request all scripts come with appended jsessionid:
{code}
<script type="text/javascript"
src="/showcase/org.richfaces.resources/javax.faces.resource/org.richfaces.ckeditor/ckeditor.js;jsessionid=xGgih0owBq2-mcqzqyyh-WmE"></script>
{code}
on subsequent requests the id is not there, the problem is that the URL with
jsessionid doesn't match the regex that's supposed to find it. So this is an
issue in CKEditor itself.
> Editor cant display after page load if page is opened directly
> --------------------------------------------------------------
>
> Key: RF-13728
> URL: https://issues.jboss.org/browse/RF-13728
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.5.0.Alpha3
> Environment: Fifefox 30, Chrome 35.0.1916.153, EAP 6.3.
> Reporter: Martin Tomasek
> Assignee: Michal Petrov
>
> Component richEditor is not displayed after page load if browser has empty
> cache and page is opened directy. For example Google Chrome anonymous mode,
> Firefox with cleared cache (ctrl+shift+d+delete - clear all) opening url
> http://localhost:8080/metamer/faces/components/richEditor/simple.xhtml?template=plain.
> Console displays these error messages:
> {code}
> Failed to load resource: the server responded with a status of 404 (Not
> Found)
> http://localhost:8080/metamer/faces/components/richEditor/config.js?t=E4KA
> Failed to load resource: the server responded with a status of 404 (Not
> Found)
> http://localhost:8080/metamer/faces/components/richEditor/skins/moono/editor.css?t=E4KA
> Failed to load resource: the server responded with a status of 404 (Not
> Found)
> http://localhost:8080/metamer/faces/components/richEditor/lang/en.js?t=E4KA
> Uncaught TypeError: Cannot set property 'dir' of undefined
> ckeditor.js;jsessionid=cCSt9DELY4qr8as9rF23pBU7:218
> {code}
> Component starts work correctly after another page load or if your first
> request is not to this component but to another one - open
> http://localhost:8080/metamer/ and then directly
> http://localhost:8080/metamer/faces/components/richEditor/simple.xhtml?template=plain
> - component is visible and work.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues