Yii Framework Forum: Ckeditor - can't bold, italic etc. - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ckeditor - can't bold, italic etc.

#1 User is offline   Mattpl 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 01-August 16

Posted 01 August 2016 - 01:32 PM

Hi! I'm using Yii framework and new CkEditor in admin panel. I have problem because in editor I can bold text, italic etc. but when I save it and reload page I see only text without previous decoration.

Another problem with `<ul>` in ediotr - when I want to do something like this:

<ul>
<li>Some text</li>
here <br> or <p>&nbsp</p> or in visual mode shift+enter
<li>some text2</li>
</ul>

When I save in i have result:

<ul>
<li>Some text</li>
<li><p>&nbsp</p></li>
<li><p>&nbsp</p></li>
<li><p>&nbsp</p></li>
<li>some text2</li>
</ul>

OK I see now that this happend only in my adsmanager but in pagemanager is ok. OK another tip for me in this AdsManager for text automaticlly add <ul><li></li></ul> and this is problem.

Edit: ehhh what a shame for me ;/ I analize this code and now I know where is the problem. In adsmanager is trim which add <li>
Sorry for my pure knowledge about Yii

// FrontEnd :) I remove trim and now i have li bullets with transparent background. Where should I look for this style? In main.less of my theme I don't see transparent backgroud of li element.

trim(strip_tags($adsModel->needs))!='') {
                    $adsModel->needs = '<li>'.str_replace(array("\r","\n\n","\n"),array('',"\n","</li>\n<li>"),trim(strip_tags($adsModel->needs),"\n\r")).'</li>';
                }


Now I have
(trim(strip_tags($adsModel->needs))!='') {
                    $adsModel->needs;

and I can correctly style text from editor in admin panel
0

#2 User is offline   HarriettRat 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 19-January 17
  • Location:Katowice

Posted 20 January 2017 - 02:18 AM

Most script fonts are regular, even if they have a steep italic angle.

If you offer an italic option, then what about bold and bold italic?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users