turnermm / ckgedit

CKEditor integrated into Dokuwiki
https://www.dokuwiki.org/plugin:ckgedit
GNU General Public License v2.0
59 stars 50 forks source link

ckgeditor removes norwegian characters on save #1

Closed kreegahbundolo closed 11 years ago

kreegahbundolo commented 11 years ago

Typing in norwegian characters in the editor works fine (lower case æøå and capitals ÆØÅ). However, when I try to save edited text the capitalized letters are removed. The lower case characters are kept just fine.

The html entities we are talking about (both lower case and capitals) are: aring (229) and Aring (197) oslash (248) and Oslash (216) aelig (230) and AElig (198)

I tried adding these entities to ent.ser using the ents_seri.php script, but they don't seem to show up there.

turnermm commented 11 years ago

There's no reason why you shouldn't be able to add these to the entities database. See:

http://www.mturner.org/fckgLite/doku.php?id=entities#configuring_html_entities

You have to follow the explicit database format and recompile ent.ser in

action/entities, then move it into the ckgedit/action directory.

Myron Turner http://mturner.org/ http://mturner.org/fckgLite https://github.com/turnermm

turnermm commented 11 years ago

I created a new ent.ser for you. Post your question to the dokuwiki forum and I will upload the new file there.

kreegahbundolo commented 11 years ago

My problem was that the add.ent file I created had carriage return chars in it in addition to the line feed chars. Once I removed them the ents_seri.php sript processet it just fine, and now the editor works with norwegian characters. Excellent, thanks for your quick response and a great plugin!

turnermm commented 11 years ago

There is now an upgraded entities database which should get most required entities.