I have enclosed a link to a version below. You need to run the index.html file inside the Samples folder.
Under Chrome it looks like this, where the ‘Hello World’ field is editable:
I want to run CkEditor locally so that users can edit their HTML even when away from the internet.
Any clues on how to get it running in a Native HTMLViewer for Windows?
CKEditor is a rather complex piece of software that may bump into IE very real limitations. There are hundreds of HTML5 stuff that IE does not support.
To edit HTML, why not use a plain instead ? Do you really need styling, fonts and justification ?
I have successfully managed to send the HTML from CKEditor to a second hidden textarea, to get over the character limits of document.title. I am now trying to extract this second textarea using either webkit or IE, so far without success!
It is works, I will be able to use CKEditor cross-platform (macOS and partial Windows so far) in desktop and web apps.
Just to be sure… you are aware that I already wrote and maintain an addon for this, right?
Tim, if you mean ‘gHTML Editor’ then yes, I already bought it and love it! I will use it for web-based apps, but I found I could download and run CKEditor locally as well so it will be available off-line.
BTW, my Microsoft Store rep just told be that the HTMLViewer technology is very likely to be using the IE Engine and not the Edge Engine. Also that the IE Engine cannot run local apps like CKEditor. So it looks like webkit is my only solution. I need to extract the full text from my hidden text area.
HTML Edit runs offline on both the Desktop and Web. HTML Edit was designed to have no remote online dependencies.
It is possible to set the IE version of HTML Viewer with registry keys:
Edit: It took me a long time to find, but no ‘gHTML Editor’ is not mine. CKEditor does have licensing requirements (fees) if you plan to use it commercially. HTML Edit uses the Quilljs.com engine which does not.
Yes, HTML Edit looks really good too and solves the desktop Windows issues. I’m a long way embedded into CKEditor, but will have another look. Thanks for the other info.
I tried using CKEditor with the meta tag from the blog and it was still unable to display the editor with IE or Edge.
Strangely enough, http://ckeditor.com shows a splendid editor in IE and Edge.
There may be something else.
Have you got in touch with them ? They have a Support menu item.
If anyone knows, it is the CKEditor developer.
Michel, I agree, that’s why I was wondering if it was a local Windows permissions issue.
First, the download link you posted probably does not have the latest version, which is Version 4.6.2 12 Jan 2017.
Second, asking here is kind of futile. Chances are the people at ckeditor.com will give you an instant reply.
Michel, I downloaded the custom CKEditor build today, so it should be up to date!
I’ll check with the CKEditor support as you say. I can get CKEditor working with webkit which it what I am favouring. I now only need to retrieve the contents of a webkit textarea which should be entirely within Xojo, but is proving elusive!
There are two ways you can go about getting the source :
That’s what the goal was. He ran into the
<title> limit and started trying this idea.
The fragmented threads make it hard to follow along. Jump in here: https://forum.xojo.com/conversation/post/322552
Indeed, it is always difficult to follow when two threads are started about the same thing.
His idea can work, but not directly from CKEditor work area, which is not in clear text. He will have to use a CKEditor method to put the text within an invisible textArea or div, so MBS can pick it up. It is not difficult to do.
Are you meaning to bring the whole text back using multiple document.title=
Yup, that seems to be the only way we will be able to get data out of a HTML Viewer cross platform in the near future.
That is the only way to overcome the 4k limit.
can probably do just fine, to send paragraphs one after the other, with some tagging and the number of the array element.
The exact limit is 4096 characters for the title change event.
I have now solved my original issue by using a webkit HTMLViewer on Windows pointing to a copy of CKEditor locally and extracting the HTML via a ChromiumFrameMBS.
Thank you to all involved!