I need ckeditor to work on a smart phone - ckeditor

I understand that CKEDITOR doesn't work on smart phones. Someone provided a workaround that required editing the ckeditor.js. The statement he said to look for isn't in my copy of ckeditor.js so I'm stuck.
Also, ckeditor.js cannot be easily edited as it is all strung together in one big line. Is there a way to 1) get a copy of ckeditor that can be edited and 2) what do I have to do so it can be used on smart phones
Thanks in advance,
Paul

CKEditor 4 is compatible with mobile environments - refer to the official compatibility documentation. If you are using some antique version like CKEditor 3 (that predates most mobile environments), upgrade to latest CKEditor 4.
ckeditor.js is minified for better performance on production environments, but you can grab the source version any time directly from the GitHub repository or through CKEditor Online Builder (check "Source (Big N’Slow)" at the bottom).

Related

Is it possible to upgrade Tinymce to v5.x in Joomla?

The current latest Joomla! v3.9.14 (August 2019)
The integrated tinymce is v4.5.11
Tinymce released the new V.5.0.0 in February 2019, including major improvements and a great new API
I want to use a plugin written with the new V5 API in Joomla!, so I wondered if it's possible to upgrade Tinymce to V5 in Joomla, or if we have no choice but to still use the old ugly Tinymce v4.x?
I tried to replace/edit files in media/editors/tinymce, just to see if it could lead to something, but of course it doesn't seem to be the right direction.
Rather than replacing the files (which could be overwritten in any future update), you're probably better off writing a new plugin for Joomla that installs Tiny 5.
The source code for the (v4) TinyMCE plugin is a good place to start to write your own - replicate how this plugin works, and you'll need to extend its functionality.
Doing it this way also means you could choose to use the Cloud version of Tiny, meaning you don't need to host the files locally, and receive updates as Tiny push them live. You do need a Tiny API key for this, but IMO, I feel it is a smarter way to host Tiny given that even during 5's life in 2019, some really useful features have been deployed, and if you're hosting all the files yourself, you'll need to keep updating them as you go.
The challenge with writing your own Tiny 5 Joomla plugin is that the core TinyMCE plugin for Joomla does not make it possible to have externally hosted Tiny plugins (such as a custom one you've created). So you would need to extend both the configuration and the instantiation to be able to store external plugin configuration, pull it in to Tiny's config, and also be able to manage your toolbars.
At Joomla Day Australia 2019 I spoke about developing external plugins for Tiny 5 in Joomla 4, and have a plugin that uses the cloud version of Tiny, and allows for external plugin configuration - but this was for an alpha version of Joomla 4.
Joomla 4 will come with Tiny 5, and I did a pull request to get external plugins in to the Editor config, so just waiting for Joomla 4 could be a more passive option.

Video functionality in Liferay 7

I need to add video functionality to CKeditor. Thus, enabled Xuggler plugin. However, it has some limitations. Thus, searched about other plugins which can be integrated with CKeditor and supports video content.
Following are the findings for above: -
I found online ckeditor builder which gives video functionality (CKEditor 4). Please help in integrating the same with Liferay 7.
https://ckeditor.com/cke4/builder.
I got another plugin html5video; https://ckeditor.com/cke4/addon/html5video
Please help in integrating the plugin with CKEditor available with Liferay 7.
Thus, requesting you to help in accomplishing either of the above solution in order to achieve video functionality in Liferay 7 webcontent.
Have a look at the lfr-dxp-src/modules/apps/foundation/frontend-editor/frontend-editor-ckeditor-web module. It contains all the CKeditor related code.
Froma quick look over it it seems that you should focus on 2 things:
Get the plugin code.
You would need a fragment bundle for that that will inject the necessary JS into the frontend-editor-ckeditor-web.
Look here for insperation: lfr-dxp-src/modules/apps/foundation/frontend-editor/frontend-editor-ckeditor-web/src/main/resources/META-INF/resources/_diffs/plugins/media
Probably you will need to change the configuration of the CKEditor
You need to create an edit options contributor. Make sure that you put this in a separate module form the fragment as the fragment.
Look here for inspiration: com.liferay.frontend.editor.ckeditor.web.editor.configuration.CKEditorConfigContributor

Internal links with wkhtmltopdf?

I have created a PDF from several web pages using wkhtmltopdf.
Is there a way to link across pages, for example from page 10 to 15.
I tried creating an element with an ID and then an anchor to link to it, but this does not work within the same page or across pages. It turns the link into an absolute URL and tries to open it in a web browser.
I solved this issue by updating the binary that I was using.
I was using 0.8 and switched to 0.11.0 rc1.
Ensure that it is built against QT (the latest binary at http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2 is.
And then just to be sure enable internal links:
--enable-internal-links
when you call the conversion
i had this issue after installing pathced version of QT
i had wkhtmltopdf 0.9.6, than i also switched to 0.11.0 rc1
then worked fine!
and no need to use --enable-internal-links. you can just turn off this option by --disable-internal-links* by default its on.
Internal links appear only to work correctly in certain builds for certain platforms. With the latest WkHTMLtoPDF 0.12.5 releases the unix builds are OK (at least for Centos and Ubuntu) and internal links are generated correctly BUT windows builds DO NOT work and leave broken links. I don't know why this is and have commented on GitHub accordingly.
Also when multiple html input documents are used any 'internal' hyperlinks between these are broken (all platforms). In other words cross input document links are NOT fixed up. This would be a really useful feature addition (particularly when generating massive reports) but sadly does not appear to be supported as yet.

Make zen coding support less file in sublime text2

How can I make zen coding support less file in sublime text2?
Install latest version of ST 2 (right now, -build 2165), and using package control (version 1.4.1), install the zen coding plugin (rather package). Then the expansion engine works fine.
I am windows user, and it was not working until last version (-build 2139), though MAC users were approving its execution.
Links:
Package control
Awesome Software and both plugins too.
Edit:
Sorry, the answer is not relative, but still let it be here as it is the best alternative till date.
To see what is your expansion key, go to :
$PACKAGES_PATH/ZenCoding/zen-settings.sublime-settings for keys and their default values.
Please give an example how you want to employ LESS using ZC,
like for html, we use:
.container>(.content>.article>.p>lorem)+(aside>h1{Side Bar}+ul>li*4>a{home,about,contact,blog})
My personal opinion will be using ST 2's snippet-expansion.
Never mind, To learn more about how to adapt for LESS, Try this source instead:
Zen Coding Discussion group.
Learn Zen-Coding from its developer ;-P .

How to preview Dojo/Dijit themes?

I bought the O'Reilly Dojo book by Matthew Russell. It says "in your toolkit checkout, you can find a theme tester at dijit/themes/themeTester.html.
I downloaded 1.3.2 from here: http://dojotoolkit.com/downloads
and cannot find such a file. I would like to see each of the three themes in action.
How can I do that?
Thanks,
Neal Walters
themeTester isn't in the release (minified) version. You need to download the *-src ones. For example this one: http://download.dojotoolkit.org/release-1.3.2/dojo-release-1.3.2-src.tar.gz. These are available off of the 'More downloads' link on the downloads page.
Besides what Wahnfireden said, you can also check out Dojocampus docs. It has examples embedded where you can dynamically change the theme applied to individual widgets (as well as change the version of dojo that is used). For example, dijit.form.Button has a bunch of examples to look at.
Dijit Theme Tester
Another great place to test out Dijit and DojoX widgets is to look at their tests. Dijit tests are here, and DojoX tests are within each individual folder here.
Note that these links are to the nightly build, not 1.3.2, so there may be small differences. I'd suggest using the Dojo nightly though, personally.

Resources