commit 2b259a85cc9fb752a03bd6f6345ae4c32043e267
Author: Son Nguyen <email address hidden>
Date: Thu Feb 26 14:45:38 2015 +1300
Fix embedded images in 'Text' block when copy and import. Bug 1425728
- Add new method PluginBlocktype::rewrite_blockinstance_extra_config()
which enables blocktype to rewrite extra configuration when copying
block
- Implement rewrite_blockinstance_extra_config() for
PluginBlocktypeText to rewrite embedded image urls in the text block
- Rename the method rewrite_artefact_ids() to
rewrite_blockinstance_config() and add new code to allow blocktype
plugins rewrite extra config when import
- Add new method
PluginBlocktype::import_rewrite_blockinstance_extra_config_leap()
- Implement
PluginBlocktypeText::import_rewrite_blockinstance_extra_config_leap() to
rewrite embedded image urls in configdata['text']
Reviewed: https:/ /reviews. mahara. org/4328 gitorious. org/mahara/ mahara/ commit/ 2b259a85cc9fb75 2a03bd6f6345ae4 c32043e267
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 2b259a85cc9fb75 2a03bd6f6345ae4 c32043e267
Author: Son Nguyen <email address hidden>
Date: Thu Feb 26 14:45:38 2015 +1300
Fix embedded images in 'Text' block when copy and import. Bug 1425728
- Add new method PluginBlocktype ::rewrite_ blockinstance_ extra_config( )
which enables blocktype to rewrite extra configuration when copying
block
- Implement rewrite_ blockinstance_ extra_config( ) for
PluginBlocktypeText to rewrite embedded image urls in the text block
- Rename the method rewrite_ artefact_ ids() to blockinstance_ config( ) and add new code to allow blocktype
rewrite_
plugins rewrite extra config when import
- Add new method ::import_ rewrite_ blockinstance_ extra_config_ leap()
PluginBlocktype
- Implement Text::import_ rewrite_ blockinstance_ extra_config_ leap() to
PluginBlocktype
rewrite embedded image urls in configdata['text']
Change-Id: Id5163817c676fb 118edea02d152b7 797111cb99f