bizley / yii2-quill Goto Github PK
View Code? Open in Web Editor NEWYii 2 implementation of Quill, modern WYSIWYG editor
License: Apache License 2.0
Yii 2 implementation of Quill, modern WYSIWYG editor
License: Apache License 2.0
HI @bizley - its me again - are there any plans to upgrade this extension to the latest version of quill? ๐
Hello
I have a problem with several ISPs which are blocking quill cdn (Russia).
If it is possible could you please add local copies with possibility to include them if cnd is not available
Thank you
Hi,
in some installations internet access might be restricted and the quill asset cannot be retrieved from cdn. Could there be a flag to use a local quill asset instead of the cdn url?
Hey, @bizley!
Thanks for your extension.
I've noticed that on click by text input on link/embed tooltip, your click event with focus on editor will fired and tooltip hidden without any possibility to interact.
If I remove this event, quill's behave as expected. Why you adds this?
Line 367 in aae29b3
I need to add an attribute such as form="idOfMyForm" to the hidden input field since my quill editor is outside my form container. But if I add this via an option as below the form attribute ends up on a div container rather than on hidden input field and on submitting the form the input field's value is not submitted.
$form->field($model, 'press_release', [
'options' => ['form' => 'starterWizard__form']
])
->label('Add press release:')
->widget(\bizley\quill\Quill::class, [
'toolbarOptions' => 'FULL'
]);
Hello,
I would like to know if you can help me with an inquiry. First, thanks for sharing this solution. I already set up everything and its running smoothly. However, I would like to know if there's a way to retrieve content already stored in the database and modify it using quill.
<?= $form->field($model, 'note')->widget(\bizley\quill\Quill::class, [ 'toolbarOptions' => 'FULL', 'options' => ['style' => 'min-height:350px;'] ]) ?>
This is the method used according to the instructions. However, is there any way to get something like this?
editor.root.innerHTML = $retrievedNote;
I hope you can help me with my doubt.
Best wishes,
David
This package requires tests.
Hi all,
I'm trying to setup this brilliant solution on auto mentions in Quill, and feel little stuck.
Can't quite get it -- how do I properly initialize any other modules other than formula
and syntax
? And not only initialize with true
, but also pass several params and callbacks within.
If anybody could help, this would be very nice and kind!
-- best
The docs state:
Editor box's height
Default editor height is 150px (this can be changed by setting 'options' parameter) and its box extends as new text lines are added.
So I was able to increase the default editor size via:
'options' => [
'style' => 'min-height: 300px;',
],
When you state "its box extends as new text lines are added", does this mean the editor's height should grow automatically? It just scrolls for me.
It would be ideal if there was a way to make the editor resizable by dragging the bottom-right corner.
I'm checking the compatibility with Quill 1.0 now. New release may appear soon.
There seems to be a typo in Quill.php on line 258:
Line 258 in d7306f1
It should be 'formats' instead of 'formates'. This causes the formats functionality to not work.
Should get the attribute value using the Yii2 specific method, which supports tabular input.
Html::getAttributeValue($model, $attribute)
Line 555 in 15df7e5
Is there an option to use deltas? https://quilljs.com/docs/delta/
When upgrading to the new version 1.2.0 (Yii 2.0: yii2-quill), the extension has crashed, giving the following error message: PHP Compile Error - yii \ base \ ErrorException Can not use method return value in write context
What is wrong ???
Thank you...
Error message:
PHP Compile Error โ yii\base\ErrorException
Can't use method return value in write context
}
/**
* Renders toolbar.
* @return string
* @since 1.2.0
*/
public function renderToolbar()
{
if (!empty($this->quillToolbar->getElements())) {
$toolbarId = 'toolbar-' . $this->id;
if (empty($this->configs['modules'])) {
$this->configs['modules'] = ['toolbar' => []];
}
$this->configs['modules']['toolbar'] = ['container' => '#' . $toolbarId];
return $this->quillToolbar->render($toolbarId);
}
Hi,
love your extension.
Is there a way to include an additional module like the quill-image-uploader?
This is the npm source for it:
https://www.npmjs.com/package/quill-image-uploader
How would I do that?
Thanks for any ideas,
gb5256
I'm trying to copy/paste text from a Word doc into the Quill editor and but all my ids and classes are being stripped. Is there a way to configure this module to modify the whitelist and ensure it gets properly preserved to the Yii db?
Specifically, I'm trying to handle footnotes which use anchor links that depend on id attributes. I'd also like preserve classes so I can style these footnotes.
I know this is probably more of a Quill/Parchment issue, but I've spent days and simply cannot figure out a solution. I suspect it has to do with adding an attributor or a clipboard matcher but the documentation is very terse and I've gotten nowhere. I was hoping you could help.
Hi,
I have installed both the Quill editor and the smart break module as per instruction (using composer.json). The Quill editor works fine. When I try to use the Smart-breaker module, I have an error state that Quill cannot import module/smart-breaker (see attached image)
Below is the code for Quill
echo $form->field($model, 'description')->widget(Quill::class, [
'config' => ['localAssetss' => TRUE,],
'options' => ['style' => 'height:220px', ],
'modules' => [
'formula' => TRUE,
'smart-breaker' => TRUE,
],
'toolbarOptions' => [
[['header' => [1, 2, 3, 4, FALSE]]],
['bold', 'italic', 'underline', 'strike'],
['link'],
[['list' => 'bullet'], ['list' => 'ordered']],
[['indent' => '-1'], ['indent' => '+1']],
['formula'],
],
])
If I comment out the line 'smart-breaker' => TRUE, then it works fine. I check and the smart-break files were install at vendor/npm-asset/quill-smart-break
Note that the vendor files are shared among many projects, hence, located outside the project directory. We used quite a number of Yii extensions without any issue.
I have googled for this issue but couldn't find anyone report similar issue.
Thanks,
D
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.