e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
322 stars 214 forks source link

Can't type or paste Chr() in the forum's TinyMCE editor #1878

Open jornmo opened 8 years ago

jornmo commented 8 years ago

Hi!

When I/we try to paste or write a text with Chr() in the forums, it does not work. When pasting noting happens, and when writing it, the post is erased.

rica-carv commented 8 years ago

Chr() is PHP code, right? So, i wonder why it's deleted, uhhh???? Maybe for some weird security reason, no?

Why not use the ASCII or HTML equivalent???

Moc commented 8 years ago

What exactly are you trying to achieve? Can you copy the text you'd like to write? You cannot use PHP functions in any part of user-input areas in e107, due to security reasons.

jornmo commented 8 years ago

We're trying to set up a programming community. Being able to paste source code snippets is mandatory.

rica-carv commented 8 years ago

Even the chr() php code inside the code tags doesn't work? Using the code sample TinyMCE plugin?

Moc commented 8 years ago

@CaMer0n Considering the security measures, how would one approach posting code extracts into forums for a programming community for example?

rica-carv commented 8 years ago

Indeed, the TinyMCE page is a little sparse on how to setup plugins inside TinyMCE.....