2amigos / yii2-ckeditor-widget

CKEditor WYSIWYG widget for Yii2.
https://2amigos.us/open-source/ckeditor-widget
Other
172 stars 112 forks source link

Strange tooltip/ text appear when mouse hover on editor #55

Closed hendrasyp closed 7 years ago

hendrasyp commented 8 years ago

This is my code :

<?php 
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\base\DynamicModel;
use dosamigos\ckeditor\CKEditor; 
?>

<?php 
$model = new \yii\base\DynamicModel(['cms_content']);
?>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'cms_content')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
        'preset' => 'full'
    ]) ?>
<?php ActiveForm::end(); ?>

When I move cursor into textarea, strange tooltip are fired beside textarea Rich Text Editor, dynamicmodel-cms_content
how could this happen ?

hendrasyp commented 8 years ago

img-appear

quackadillyblip commented 8 years ago

image I have somewhat the same issue. A tooltip is rendered with the id of editor? "nicer" lay out as OP but still... a user doesn't need to know html stuff.

tonydspaniard commented 8 years ago

@hendrasyp @kankerlijer Its very weird as i do use the editor and i do not have any tooltips. Maybe is due to the CMS theme you have? On another note, the label you show marked on the second image you need to remove it by setting it to false:

<?= $form->field($model, 'cms_content')->widget(CKEditor::className(), [
        'options' => ['rows' => 6],
        'preset' => 'full'
    ])->label(false) ?>
quackadillyblip commented 8 years ago

@tonydspaniard thanks for the reply. I allready tried label(false), this had no effect. using adminlte2 as theme.

tonydspaniard commented 8 years ago

@kankerlijer make sure is not due to the AdminLTE that you have those tooltips by default: https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html#adminlte-options

quackadillyblip commented 8 years ago

@tonydspaniard fixed it :+1: I am such a noob, I should rtfm

tonydspaniard commented 8 years ago

great! :)

hendrasyp commented 8 years ago

great, you saved my code :)

thank's @tonydspaniard :+1: