Comments (7)
@atomrus1993 вам надо удалить script
из списка запрещенных тэгов.
Следующий код должен работать:
echo \vova07\imperavi\Widget::widget([
'name' => 'redactor',
'settings' => [
'lang' => 'ru',
'deniedTags' => ['style'],
...
]
]);
Желаю удачи!
from yii2-imperavi-widget.
Здравстуйте @atomrus1993 !
Вам надо добавить тэг в список доступных.
Найдите по этой ссылке: https://imperavi.com/assets/pdf/redactor-documentation-10.pdf поиском параметр allowedTags
.
В итоге будет что-то такое:
echo \vova07\imperavi\Widget::widget([
'name' => 'redactor',
'settings' => [
'lang' => 'ru',
'allowedTags' => ['p', 'div', 'script', ...],
...
]
]);
Удачи!
from yii2-imperavi-widget.
Здравствуйте @vova07 !
Пробовал делать так, и пробовал делать тег
removeScript => false
,
не помогло, все равно не могу редактировать, не вижу скрипта...
from yii2-imperavi-widget.
@vova07 Спасибо! то что надо!)
from yii2-imperavi-widget.
@vova07 Тикет можно закрыть! проблема полностью решена!)
Большая просьба к Вам @vova07 , добавить в readme такие моменты, для скрипта, для div'ов, чтобы при таких случаях не страдали люди))
Спасибо Вам!)
from yii2-imperavi-widget.
Vova zdravstvuyte. ya ustanovil imperavi na yii2, xochu dobavit widget html code. nikak ne poluchaetsya, pojaluysta skajite kak eto sdelat
from yii2-imperavi-widget.
from yii2-imperavi-widget.
Related Issues (20)
- Как изменить цвет заголовка? HOT 1
- Sticky блок HOT 3
- Конструкция "="" в тегах <img> HOT 2
- Как изменить список удаляемых тегов? HOT 7
- GetImagesAction and GetFilesAction return invalid paths for files in subfolders
- При редактировании теряется форматирование HOT 1
- Some strange happens with versions HOT 1
- Spell Check
- Редактор не сразу появляется при переключении табов компонента yii/bootstrap4/tabs HOT 1
- How to control buttons? HOT 5
- Проблема с тегом <p> HOT 3
- Редактор дублирует текст при вставке HOT 1
- How to add superscript and subscript buttons?
- Не выводится стиль форматирования h6
- Please add en.js to the language folder
- Тэг p внутри li
- CodeMirror implementation for source
- При загрузке картинки ошибка
- Bugs on adding an image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-imperavi-widget.