You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without any issues. However I am having a difficult time adding this config to Craft CMS.
I tried several different approaches but all failed. When I add the table plugin CKEditor says it's already added and I can't re-add it, however I am unable to find a different DLL file beside the existing table one as TableLayout seems to be bundled in it.
I can see a refernce to "menuBar:insertTableLayout" in ckeditor/src/web/assets/ckeditor/dist/ckeditor5-dll.js so it's bundled and should be available but since it's not in the toolbar visually I don't know how to add it, the only things imported are
I also tried to create my custom DLL file but it didn't work as well since it either said Table is already registered or TableLayout cannot be found.
I also tried to install the table build file again
npm pack @ckeditor/ckeditor5-table
then moved it to my AssetBundle
class CkEditorLayoutTableAssetBundle extends BaseCkeditorPackageAsset
{
public $sourcePath = __DIR__ . '/build';
public $js = [
'table.js',
];
public array $pluginNames = [
'TableLayout',
];
public array $toolbarItems = [
'insertTableLayout',
];
}
But I just get the error
No plugin named Table found in window.CKEditor5.
or
No plugin named TableLayout found in window.CKEditor5.
or
Missing component: insertTableLayout
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to add a
insertTableLayouttoolbar button for the CKEditor from here https://ckeditor.com/docs/ckeditor5/latest/features/tables/layout-tables.htmlI can do that in my frontend via
Without any issues. However I am having a difficult time adding this config to Craft CMS.
I tried several different approaches but all failed. When I add the table plugin CKEditor says it's already added and I can't re-add it, however I am unable to find a different DLL file beside the existing table one as TableLayout seems to be bundled in it.
I can see a refernce to
"menuBar:insertTableLayout"in ckeditor/src/web/assets/ckeditor/dist/ckeditor5-dll.js so it's bundled and should be available but since it's not in the toolbar visually I don't know how to add it, the only things imported arebut not TableLayout https://github.com/craftcms/ckeditor/blob/4.x/src/web/assets/ckeditor/src/ckeditor5-craftcms.js#L49-L56 and I can't add the plugin table twice.
I also tried to create my custom DLL file but it didn't work as well since it either said Table is already registered or TableLayout cannot be found.
I also tried to install the table build file again
then moved it to my AssetBundle
But I just get the error
No plugin named Table found in window.CKEditor5.
or
No plugin named TableLayout found in window.CKEditor5.
or
Missing component: insertTableLayout
Beta Was this translation helpful? Give feedback.
All reactions