No... I am not saying that the sub-sirectory is accessible from the web.
Regards,
Is it possible to create ElggFile from existing one ?
Regards,
I am saying that when a user click on "create new" I want to create an ElggFile from "sample.doc" . The file "sample.doc" is stored in my plugin directory.
The goal of The Wire plugin isn't allow to appear the mentioned HTML special chars.
I'm afraid that with the CKeditor you will not be able to solve this issue.
Or you'll need to create separate input/output files for this.
I don't know nothing about the filter content config in the CKeditor but TinyMCE has it and this helps us very well.
Try to search this feature in the CKeditor documentation.
You also can use:
'editor_type' => 'simple',
option like as in the comments.
Hello, thanks for the reply. On my side I did some tests and I found a solution that seems to work.
in the file mod/thewire/start.php
I modified the function function thewire_filter ($ text)
I disabled the $ text = preg_replace for the links and added as a function: return trim (html_entity_decode ($ text));
The Wire now displays the html perfectly.
You can change only start.php instead of 2 files or more.
Just add this in thewire_save_post() function:
$text = strip_tags($text);
Or even:
$text = urldecode(html_entity_decode(strip_tags($text)));
Before
$post->description = htmlspecialchars($text, ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8');
Keep in your minds, all your hacks will be lost after updating Elgg in next release.
So, best way is a creating your custom plugin.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.