Rich Text Editor (rte)

Share your CuteNews.RU skins and code snippets.

Postby Partyism » Fri Feb 06, 2009 9:30 am

Hi, i didnt changed the last thing. It works for me now. Awesome!
Only the insert images dont work really well.

This:
Code: Select all
<img style="width: 539px; height: 82px;" src="http://www.partyism.nl/artikelen/data/upimages/partyism-nl/subfolders/voetbal/subfolders/voetbal/nec_haalt_collins.jpg" alt="nec_haalt_collins.jpg" border="0" />


Needs to be:
Code: Select all
<img style="width: 539px; height: 82px;" src="http://www.partyism.nl/artikelen/data/upimages/partyism-nl/subfolders/voetbal/nec_haalt_collins.jpg" alt="nec_haalt_collins.jpg" border="0" />
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby al3loo » Fri Feb 06, 2009 2:20 pm

can you pls send your images.mdu .. so I can configure it for you !
Al3loOo IS H3R3

Image
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby Partyism » Fri Feb 06, 2009 3:30 pm

well i used the last update from you but here it is.
Attachments
images.rar
images.mdu
(9.02 KiB) Downloaded 33 times
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby al3loo » Fri Feb 06, 2009 5:09 pm

You're right, now I update it try to reupload that ..



Good Luck !
Attachments
images.zip
(9.23 KiB) Downloaded 37 times
Al3loOo IS H3R3

Image
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby Partyism » Fri Feb 06, 2009 6:43 pm

Nice, it works! :D
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby Partyism » Tue Feb 10, 2009 6:25 pm

just wanted to let you know that the preview function, and embedding a youtube movie is not working.
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Some Unicode characrters did not display

Postby tak » Sun May 23, 2010 4:14 am

Hi all,

I hope people still interest into this. I love the way RTE works. But, I'm having a problem, that some characters like "ố, ộ, đ". They don't display the way they should.Adding new article is OK, but when edit, calling the article from the database then the problem occur!

I tried this in the /inc/functions.inc.php:

function rteSafe($strText) {
//returns safe code for preloading into the RTE
$tmpString = $strText;

//convert all types of double quotes
$tmpString = str_replace(chr(147), chr(34), $tmpString);
$tmpString = str_replace(chr(148), chr(34), $tmpString);

//replace carriage returns & line feeds
$tmpString = str_replace(chr(10), " ", $tmpString);
$tmpString = str_replace(chr(13), " ", $tmpString);

//replace &lt;, &gt; to actual symbols
$tmpString = str_replace('&lt;', '<', $tmpString);
$tmpString = str_replace('&gt;', '>', $tmpString);

//convert all types of single quotes
$tmpString = str_replace(chr(145), chr(39), $tmpString);
$tmpString = str_replace(chr(146), chr(39), $tmpString);
$tmpString = str_replace("'", "'", $tmpString);

//convert some chracters
$tmpString = str_replace(chr(7889), ‘ố’, $tmpString);
$tmpString = str_replace(chr(7891), ‘ồ’, $tmpString);
$tmpString = str_replace(chr(7893), ‘ổ’, $tmpString);
$tmpString = str_replace(chr(7895), ‘ỗ’, $tmpString);
$tmpString = str_replace(chr(7897), ‘ộ’, $tmpString);
$tmpString = str_replace(chr(273), ‘đ’, $tmpString);

return $tmpString;
}

it did not help.
Please help. Thanks.

TAK
tak
 
Posts: 2
Joined: Wed May 19, 2010 2:03 am

Postby tak » Sun May 23, 2010 8:06 pm

I found it.
Turn off converting single and double quote will solve the problem.

TAK
tak
 
Posts: 2
Joined: Wed May 19, 2010 2:03 am

Postby wolstenholme13 » Wed Oct 06, 2010 12:44 am

Thanks for sharing this... just what I was looking for.
wolstenholme13
 
Posts: 1
Joined: Tue Oct 05, 2010 11:12 pm

Previous

Return to Skins and snippets



Who is online

Users browsing this forum: No registered users and 1 guest

cron