Write Mathematical Formula on Drupal with CKEditor's Mathjax Plugin

  • Posted on: 14 February 2015
  • By: oon
Drupal CKEditor Mathjax Dialog

I NEVER ever imagine will put mathematical equation on my blog :))

but ya, may be I just wrong, now I start to put mathematical formula on my blog ;)

ok, here's how to use CKEditor to edit mathematical formula with Mathjax [1] plugin.

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.[2]

I edit this blog with CKEditor [3].


Drupal Module with SOAP Client Has Problem with remote_stream_wrapper (couldn't load external entity WSDL)

  • Posted on: 20 November 2014
  • By: oon

So you run SOAP Client on your Drupal's code? if you are using external WSDL and got condition like below.

PHP error log:

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://domain?wsdl' : failed to load external entity "http://domain?wsdl"

Try this Patch [1]:


Syntax Highlight for Drupal with Built-in highlight.js on CKEditor

  • Posted on: 24 July 2014
  • By: oon
Highlight.js Syntax Highlighting for the Web

It's almost 2 years since I wrote about Highlight.js on this blog.

And suddenly few days ago after I update to latest version of CKEditor, the syntax highlighting process on this blog got problem.

I decide to re-install HighlightJS and also the CKEditor (now with CDN data).

Since CKEditor 4.4, it has new feature, syntax highlighting, and the default mechanism using Highlight.JS [1].

Here's few steps on my Highlight.js updates:

Problem with tag <code> always disappear on Drupal CKEditor? Try to disable Advanced Content Filter (ACF)

  • Posted on: 23 July 2014
  • By: oon
Drupal Advanced Content Filter

Start from CKEditor 4.1 [1], it has core feature that limit HTML code, configurable Advanced Content Filter (ACF).

If you have special use of HTML tag, for example tag <code> on syntax highlight, you have to change the ACF configuration, so the tag won't be stripped everytime you save your Drupal node.

Change it on Menu Configuration > CKEditor > Full > Advanced Content Filter. (shown on image)


Add Phone Number and New Fields to Drupal User Profile

  • Posted on: 19 July 2014
  • By: oon
Drupal Account Add Phone Number Field

As we know, Drupal is powerful CMS because very extensible.

This time I won't extend Drupal by code or add any module, just configure some fields.

One of the common field you want to extend in user profile is add Phone Number field (yes, everyone now has cellphone). Or may be you want to add several extra fields on the Drupal's account, you can just add it like managing the fields when you add new content type.

Here's how you can "manage fields" of People's Account Setting: your-drupal-website.domain/admin/config/people/accounts/fields