Programatically set the position of CKEditor's dialogs -
Whenever a new one opens, I want to find a way to determine the status of the program in a CeEdit dialog. The real setting of the position section looks simple, but I can not seem to know how the incident of a new CK editor could be framed.
I'm assuming it will happen with some of the lines ...
CKEDITOR.on ('Edit the dialog', function (e) {...} );
But in fact it can not be found in the documentation. Any indications / suggestions? After spending many hours today, I was able to understand it with full fortune.
Conversation definitions can be manipulated on load time. Within your config.js
file, add the following:
CKEDITOR.on ('dialogDefinition', function (e) {var dialogName = e.data.name; Var dialogdefinition = e.data.definition; dialogDefinition.onShow = function () {// calculate your newX and newY ... this.move (newX, newY);}}
If you want to adjust the position for a specific dialogue to test for it.
Comments
Post a Comment